home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
WLAX
/
SETERR.ZIP
/
SETERR.DOC
< prev
next >
Wrap
Text File
|
1991-03-12
|
649b
|
25 lines
Documentation for
SETERR.EXE
by Duane Paulson
A batch file enhancer for those who occasionally run one batch file out of
another batch file.
SETERR sets the DOS errorlevel to any value between 0 and 255.
Examples:
seterr 0<cr> Sets the DOS errorlevel to 0.
seterr 10<cr> Sets the DOS errorlevel to 10.
seterr 255<cr> Sets the DOS errorlevel 10 255.
Negative numbers are not allowed, and will be converted to positive numbers.
Suggestions for use:
Use with a batch file called by another batch file to return an errorlevel
to the first batch file for conditional processing.