TIP: Click on subject to list as thread! ANSI
echo: batpower
to: ALL
from: MIKE.ZELESKI@f112.n2607.z1.fidonet.org (MIKE ZELESKI)
date: 1997-03-09 00:00:00
subject: errorlevel creation

GP>MZ>GP>Okay, I'm well aware of how to TEST for errorlevels in a batch file.
GP>MZ>GP>Can anyone tell me how I can CREATE an errorlevel in a batch file?
(fo
GP>MZ>GP>eg, to pass on to another program. . .) :)
 
GP>MZ>Set errorlevel = ###
 
GP>But wouldn't that just set an environment variable, and not a true
GP>"errorlevel"?(as DOS recognizes it) :)

It seems to work OK that way.  So I assume that the errorlevel is just a
pre-allocated environment variable.

---
 * OLXWin 1.00b * Elephant: A mouse built to government specifications. - RAH

SOURCE: alt.fidonet via archive.org

Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.