delorie.com/archives/browse.cgi   search  
Mail Archives: opendos/1997/03/18/12:47:58

From: "Matthias Paul" <MPAUL AT ibh DOT rwth-aachen DOT de>
Organization: IBH, RWTH-Aachen
To: opendos AT mail DOT tacoma DOT net
Date: Tue, 18 Mar 1997 18:17:51 GMT+0100
Subject: Re: [opendos] Wishlist v2.0
Reply-to: Matthias DOT Paul AT post DOT rwth-aachen DOT de
Message-ID: <3F33A176682@ibh.rwth-aachen.de>

On Mon, 17 Mar 1997, Jeff Harlow wrote:
> > Colin W. Glenn wrote:
> > I couldn't find any documented exit codes for SORT in what I have 
> > within reach, but I tried the following at the DOS prompt with a 
> > 63KB filename.ext and a 126KB filename.ext:
> 
> > sort < filename.ext > filename.srt
> > if errorlevel 2 echo 2
> > if errorlevel 1 echo 1
> > if errorlevel 0 echo 0
> 
> > 63KB filename.ext returned 0
> > 126KB filename.ext returned 1
> 
> Be sure to test this thoroughly before relying on it, and try to 
> find out if sort exit codes are documented anywhere.

Here's a snipped of my BATTIPS.TXT file (from my MPDOSTIP.ZIP):
 
 Program: DOS version:  Errorlevel:
 ...
 SORT     Novell DOS 7  0 ok
                        1 (NEW: Thanks to Jeff and Colin this code
                          is undergoing some examination now.)        
                        2 User break (<Ctrl>+<C>)
                        4 Wrong syntax
 ...
 
If you need a comprehensive list of already known errorlevels, 
that I have collected in the past, have a look at my file... ;-)  

Bye,

 Matthias


------------------------------------------------------------------
 Matthias Paul     ! My eMail address has changed. For some time !
 Ubierstrasse 28   ! mails to former <MPaul AT ibh DOT rwth-aachen DOT de>  !
 D-50321 BRUEHL    ! will be forwarded to the new address.       !
 eMail: <Matthias DOT Paul AT post DOT rwth-aachen DOT de>                       
 WWW  : URL: http://www.rhrz.uni-bonn.de/~uzs180/mpdokger.html    
------------------------------------------------------------------

- Raw text -


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