SETERROR.EXE 16-bit DOS MODE
Purpose Used to set a DOS ERRORLEVEL that a subsequent program can use.
Description The -e options sets a specific ERRORLEVEL. The -s option sets the given ERRORLEVEL only if xxxxx is found on the screen (somewhere other than the echo of the seterror command).


  SETERROR version 2.21    written by Lincoln Jaros

      seterror [options]

        Options:

        -e nnn         set ERRORLEVEL (EL) to nnn (0-255) and exit
        -c             don't ignore case in string match
        -s nnn xxxxx   if string xxxxx found on screen set errorlevel nnn
                       (-s may be used up to 16 times
        -w             set EL to 1 if Windows is running, otherwise 0

        -f fname       filename to use for the following comparsions:
        -i             set EL to first integer found in fname - 0 if none
        -p nnn         set EL to nnn and exit if file does not exist
        -t             set EL to 1 if date of fname is today
        -h h1:m1 h2:m2 set EL to 1 if time is between h1:m1 and h2:m2

        -d             echo errorlevel to DOS environment (SETERROR=)
        -v             echo errorlevel to output

      Set ERRORLEVEL (EL) on exit for use in batch files
      
		

DOWNLOAD