TIP: Click on subject to list as thread! ANSI
echo: 4dos
to: ALL
from: Peter Holm
date: 1998-04-16 00:00:00
subject: Question #1!

From: Peter Holm 
Subject: Question #1!
Date: 1998/04/16
Message-ID: #1/1
References: 
Distribution: fido
Organization: Enjoy life
Newsgroups: fido.4dos


Hi Gerald.

On Apr. 13, 1998 at 20:54 hours you wrote to Barry Block:

 GM> provide more accurate detail of what the problems are, one must
 GM> live with the fact that all errors are lumped into errorlevel 255.

Maybe CHKDSK does that (I don't use the DOS-one), lumping _all_ errors into
255, but with other programs you should be carefull. ERRORLEVEL without any
operator checks to "greater equal"!

      ERRORLEVEL [operator] n
           This test retrieves the exit code of the preceding external
           program.  By convention, programs return an exit code of 0 when
           they are successful and a number between 1 and 255 to indicate an
           error.  The condition can be any of the operators listed above
           (EQ, !=, GT, etc.).  If no operator is specified, the
           default is GE.  The comparison is done numerically.

   Greetings,
   Peter Holm (pholm@dorf.ccc.or.at) 

SOURCE: echoes 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™.