W Wayne Dec 12, 2003 #1 It seems my "errorlevel" is broken... Any help? @choice /c:ynx "Answer: " @echo %errorlevel% always returns 0 ???
It seems my "errorlevel" is broken... Any help? @choice /c:ynx "Answer: " @echo %errorlevel% always returns 0 ???
M Mark V Dec 12, 2003 #2 In said: It seems my "errorlevel" is broken... Any help? @choice /c:ynx "Answer: " @echo %errorlevel% always returns 0 ??? Click to expand... Are you running under command.com? Use cmd.exe. Choice.exe may fail in NTx systems. Look at (if available) SET /P (set /?) for one way to prompt.
In said: It seems my "errorlevel" is broken... Any help? @choice /c:ynx "Answer: " @echo %errorlevel% always returns 0 ??? Click to expand... Are you running under command.com? Use cmd.exe. Choice.exe may fail in NTx systems. Look at (if available) SET /P (set /?) for one way to prompt.
G Guest Dec 12, 2003 #3 I'm using this to start my session: start "DOS 1" cmd /E:ON /F:ON /V:ON /T:1E D> set/p is available, but this worked until the other day when I finished an FTP session...
I'm using this to start my session: start "DOS 1" cmd /E:ON /F:ON /V:ON /T:1E D> set/p is available, but this worked until the other day when I finished an FTP session...
A Al Dunbar [MS-MVP] Dec 14, 2003 #4 Wayne said: It seems my "errorlevel" is broken... Any help? @choice /c:ynx "Answer: " @echo %errorlevel% always returns 0 ??? Click to expand... If I had to decide which to blame for such a problem between the built-in errorlevel functionality and a utility designed for an earlier version of the operating system I would place my bet on the error having been caused by CHOICE, not ERRORLEVEL. /Al
Wayne said: It seems my "errorlevel" is broken... Any help? @choice /c:ynx "Answer: " @echo %errorlevel% always returns 0 ??? Click to expand... If I had to decide which to blame for such a problem between the built-in errorlevel functionality and a utility designed for an earlier version of the operating system I would place my bet on the error having been caused by CHOICE, not ERRORLEVEL. /Al