|
-
August 8th, 2002, 10:31 PM
#11
Member
Even if the choice command is not available you could try what I do for getting input and then validate some data:
Use the command SET with /P to prompt for the value of new variable you set to the computer, at the end of the bat file you can clear this variable, here's a example of how to do it :
@ECHO OFF
REM ***************************************************************
REM * THIS WILL GET YOUR NAME AND PUT IT AT THE FIRST LINE OF A BLANK PAGE *
REM ***************************************************************
CLS
ECHO Please enter your first and last name:
SET /P Name=Blablabla (Where "Name" is the variable name you want to use
and "Blablabla" is the message at prompt, could be something like "Enter name here:")
CLS
ECHO Here is your name: %Name%
SET Name= (Clears the Name variable from your computer)
I hope this helps !
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
|