Mail Archives: opendos/1997/11/30/10:01:12
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 -