Dec 172017
 
Sets DOS errorlevels (command-line driven or queries user). Useful when testing batch file if errorlevel == XX queries.
File ERRNO.ZIP from The Programmer’s Corner in
Category Batch Files
Sets DOS errorlevels (command-line driven or queries user). Useful when testing batch file if errorlevel == XX queries.
File Name File Size Zip Size Zip Type
ERRNO.COM 8833 6027 deflated
ERRNO.DOC 1117 542 deflated

Download File ERRNO.ZIP Here

Contents of the ERRNO.DOC file


ERRNO.COM
SETS ERRORLEVEL FROM COMMAND LINE ARGUMENT
MS QUICKC V. 2.5
Tiny Memory Model (.COM file)
DAN GOLDBERG, 10/90


This little program simply sets errorlevels (exit codes).
Just type the errorlevel you want, from 0 to 255, on the
command line, and ERRNO will set that errorlevel.

Or type ERRNO by itself, and you will be prompted for an
errorlevel value. The ONLY values accepted are 0 - 255.


example:
ERRNO 254 (will set errorlevel to 254)

(or type ERRNO alone to be prompted for errorlevel)

to test, type:
if errorlevel 255 cls (will NOT clearscreen)

then type:
if errorlevel 254 cls (will clear screen)
if errorlevel 253 cls (will clear screnn)
. . .

I need not tell anyone out there how important errorlevels are
when working in DOS, especially with batch files.

If you use the program, please send one dollar, or just a hello,
to:

Dan Goldberg
239 East 91, Apt.#1
New York, N.Y. 10128


 December 17, 2017  Add comments

 Leave a Reply

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

(required)

(required)