delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/11/30/10:01:12

Message-Id: <s4817eed.069@calderauk.com>
Date: Sun, 30 Nov 1997 14:57:30 +0000
From: Matthias Paul <MPaul AT calderauk DOT com>
To: opendos AT delorie DOT com, paul-ma AT reze-1 DOT rz DOT rwth-aachen DOT de
Subject: Re: OpenDOS 7.02b2 bugs
Mime-Version: 1.0


On 97/11/30 MJS wrote:

>> 6. COMP.EXE can't work in batches: they not return errorlevels and ask
>>    when files differs by size
>Using FC might help.
BTW, COMP uses the following (known) errorlevels (verified since NWDOS 7):
 0 - usual run, even if target file not found, or files have different size
 3 - user break ^C
 4 - no files found, or source file not found, or syntax error

OS/2 COMP returns the following errorlevel:

0 - ok
1 - no files found
2 - file/dir access error
3 - user break ^C
4-  break due fault
5 - files were not equal

I have not tested the MS-DOS  errorlevels. 
Of course, OpenDOS should at least report errorlevel 5 if file are not equal...

Matthias

PS: For more errorlevel have a look at the BATTIPS.TXT file from my
MPDOSTIP.ZIP package...


------------------------------------------------------------
Matthias Paul
eMail: <Matthias DOT Paul AT post DOT rwth-aachen DOT de>
Web: http://www.rhrz.uni-bonn.de/~uzs180/mpdokeng.html


- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019