Advertise Here

Author Topic: Some coding help.  (Read 11059 times)

0 Members and 1 Guest are viewing this topic.

Offline Mdog

  • SMF For Free Member
  • *
  • Posts: 48
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Some coding help.
« on: March 26, 2007, 08:47:49 pm »
Forum Url: http://gcoders.smfforfree2.com
Hello, I am not sure if anyone here is GOOD at coding batch files or not.  But if you are please answer my question.

Question- On my batch file I want it to say Hi, whats your name- now i got that far.  But then when you type your name i want to it apear as Hi (what you typed)

here is the code so far
Code: [Select]
@echo off
:menu
cls
title hi
echo Hello world
echo Whats your name?
echo this is my first program
Echo Type your name
set /p c=Option:
:(typedname)
cls
echo Hi [i](this is were i want the name)[/i]
echo glad you got this far
echo if you hit 1 you will go to a screen were you can chat with the computer
set /p c=Option:
if %c%==1 goto 1
:1
cls
echo LolLolLolLollollollollollollollollollollollollollollololollollollollollollollol!
echo You actualy thought you can talk to the computer lollollollollollollollollollol!
echo I PRANKED YOU!!!
echo Use this on your friends I dare you!!!
echo dont wory this doesnt harm your computer
echo or does it? 0_o
echo type e to exit
set /p c=option
if %c%==e goto e
:e
cls
exit
Pause
Please help if you can.

Offline Crasy

  • Global Moderator
  • *
  • Posts: 3960
  • Semi-Retired ;)
    • View Profile

  • Total Badges: 29
    Badges: (View All)
    Poll Starter Poll Voter Seventh year Anniversary Arcade Highscore Windows User
Re: Some coding help.
« Reply #1 on: March 27, 2007, 02:06:19 pm »
I wish I could help you. But google got me this cool resource:
http://www.computerhope.com/batch.htm#02
I think the %1 part might be what you need...or something.

Moved to Coding board too ;)
Did my answer help you? Want to help out hosting costs?


Every donation counts.

Offline Mdog

  • SMF For Free Member
  • *
  • Posts: 48
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Some coding help.
« Reply #2 on: March 27, 2007, 03:37:51 pm »
Nope didnt work

Offline Mdog

  • SMF For Free Member
  • *
  • Posts: 48
    • View Profile

  • Total Badges: 11
    Badges: (View All)
    Topic Starter Combination Level 2 Level 1 10 Posts
Re: Some coding help.
« Reply #3 on: April 13, 2007, 08:11:55 pm »
Im lockin this nobody will help except crazyandconfused but that didnt help much (i had already checked everything on that site)

 

Related Topics

  Subject / Started by Replies Last post
1 Replies
1033 Views
Last post January 15, 2007, 02:08:09 pm
by Crasy
0 Replies
1686 Views
Last post May 22, 2007, 03:34:41 pm
by Agent Moose
12 Replies
2044 Views
Last post March 17, 2008, 09:35:22 pm
by Ina
6 Replies
1713 Views
Last post February 03, 2009, 01:49:18 pm
by Colette Brunel
3 Replies
1144 Views
Last post July 07, 2009, 11:08:49 pm
by Nevada