Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
Folks....
I'm using the Good 'ol...
set INPUT=
set /p INPUT= Enter First Name:to get some user data.
However...I would like to give the option to SKIP entering any data without having to enter a blank (because the blank input would then overright the previous info).
Something like...
set INPUT=
set /p INPUT= Enter First Name or "S" to skip:I'm hoping this is pretty basic....any help appreciated.
THANKS
> PLEASE CONTRIBUTE to Computing.net - Report back what did/didn't work for Others' Reference.<

choice /n do you have input for me?
goto :%errorlevel%
:1
set INPUT=
set /p INPUT= Enter First Name:
goto :eof:2
=====================================
If at first you don't succeed, you're about average.M2Go

In XP PRO...cmd window....I got the error:
'choice' is not recognized as an internal or external command,operable program or batch file.
Does this mean that the choice command is not part of XP's "simulated" DOS?
Thanks
> PLEASE CONTRIBUTE to Computing.net - Report back what did/didn't work for Others' Reference.<

CHOICE is for MS-DOS/W9x
http://www.computerhope.com/choicehl.htm
The posting warnings clearly state that this is not the forum for XP, it is up the page.
XP is based on NT4 and NOT MS-DOS.
CMD.EXE = NT COMMAND PROMPT
COMMAND.COM = Emulated MS-DOS Command Prompt (loosely based on MS-DOS 5/6)http://www.microsoft.com/resources/documentation/windows/xp/all/proddocs/en-us/ntcmds.mspx?mfr=true
http://www.ss64.com/nt/
http://www.ss64.com/ntsyntax/index.html

Hi kev,
CHOICE is an externaql command. It's included in some versions of XP but not all. Dunno why.
I use CHOICE.COM from DOS and it seems to work OK. You can get it here:
If at first you don't succeed, you're about average.M2

![]() |
Formatting a 250gb IDE hd...
|
USB 2.0 and DOS?
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |