Jump to content

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

From Wikipedia, the free encyclopedia
Computing desk
< November 16 << Oct | November | Dec >> November 18 >
Welcome to the Wikipedia Computing Reference Desk Archives
The page you are currently viewing is an archive page. While you can leave answers for any questions shown below, please ask new questions on one of the current reference desk pages.


November 17

[edit]

errorlevel

[edit]

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)[reply]

According to this page, you have to use conditional statements or loops to determine the error level in MS-DOS.—Best Dog Ever (talk) 08:20, 17 November 2017 (UTC)[reply]
Only works in scripting due DOS prompts overwrites the ERRORLEVEL. So use in BATch files only. --Hans Haase (有问题吗) 09:56, 17 November 2017 (UTC)[reply]
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)[reply]