Thread: Need Batch Help
View Single Post
Old Oct 8th, 2006, 1:24 PM   #4
AntiNinja
Hobbyist Programmer
 
AntiNinja's Avatar
 
Join Date: Jun 2006
Location: The States
Posts: 101
Rep Power: 3 AntiNinja is on a distinguished road
Send a message via AIM to AntiNinja Send a message via Yahoo to AntiNinja
If I remember correctly 'CHOICE' only works on 9x so try using this:
set /p user=Enter Y/N
IF %user% EQU N GOTO NO
IF %user% EQU Y GOTO YES
Instead of this:
echo Y Yes
echo N No
CHOICE /C:yn Choose an option.
IF errorlevel 2 GOTO No
IF errorlevel 1 GOTO Yes
__________________
Pain is just weakness leaving the body.
AntiNinja is offline   Reply With Quote