Wikipedia:Reference desk/Archives/Computing/2017 November 17

= November 17 =

errorlevel
How do I view the current errorlevel in MS-DOS 6.22?

ECHO %ERRORLEVEL% doesn't seem to work. — Preceding unsigned comment added by 110.77.173.30 (talk) 07:55, 17 November 2017 (UTC)


 * According to this page, you have to use conditional statements or loops to determine the error level in MS-DOS.&mdash;Best Dog Ever (talk) 08:20, 17 November 2017 (UTC)


 * Only works in scripting due DOS prompts overwrites the ERRORLEVEL. So use in BATch files only. -- Hans Haase (有问题吗) 09:56, 17 November 2017 (UTC)


 * Try this (it is the program startup line in a .BAT file):
 * yourprogram.exe -v %1
 * Akld guy (talk) 05:05, 18 November 2017 (UTC)