home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: InfoMgt / InfoMgt.zip / uudbz003.zip / testDBZ.Cmd < prev    next >
OS/2 REXX Batch file  |  1997-08-09  |  563b  |  32 lines

  1. @echo off
  2. rem testdbz.cmd - test errorlevel returns from dbz
  3. rem by John Carmack, MarchHare@momeraths.org
  4. rem
  5. rem Public domain software.
  6. rem
  7.  
  8. @echo on
  9. dbz %1 %2 %3 %4 %5 %6 %7 %8
  10. @echo off
  11. if errorlevel 98 goto configErr
  12. if errorlevel 49 goto userErr
  13. if errorlevel 1 goto dbzErr
  14.  
  15. @echo no error from program
  16. goto End
  17.  
  18. :configErr
  19. @echo There is a problem with your configuration.
  20. goto End
  21.  
  22. :userErr
  23. @echo There is a porblem understanding your input.
  24. goto End
  25.  
  26. :dbzErr
  27. @echo dbz could not find/add the key you input.
  28. goto End
  29.  
  30. :End
  31.  
  32.