home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 8 Other / 08-Other.zip / QEXIST.ZIP / QEXIST.DOC < prev   
Text File  |  1989-08-24  |  2KB  |  60 lines

  1.  
  2.  
  3.  
  4.                              Query Existance
  5.             
  6.                                     by
  7.  
  8.                                Paul Martin
  9.  
  10. QEXIST.EXE is a program that will act similar to the COMMAND.COM
  11. command IF EXIST.  There is one major difference though and that is
  12. QEXIST will return an ERRORLEVEL to your BAT or CMD file with different
  13. error codes for different errors.  These error codes are the DOS and OS/2
  14. error codes so they have the same meaning.  QEXIST also traps hard errors
  15. such as DRIVE NOT READY and SECTOR NOT FOUND, this will allow you to 
  16. trap those nasty abort, retry, ignore messages or for those of you
  17. running under OS/2, those irritating popup dialog boxes.  I have
  18. included two command files (one for DOS and the other for OS/2) 
  19. although they are virtually the same.  These files will give you an
  20. example of how QEXIST works.  
  21.  
  22. An Example of Using QEXIST:
  23.  
  24. .
  25. .
  26. .
  27. ECHO *** INSERT INSTALL DISK IN DRIVE A: ***
  28. QEXIST A:INSTALL.DAT
  29. IF ERRORLEVEL 21 GOTO NODISK
  30. IF ERRORLEVEL 2 GOTO NOTFOUN
  31. GOTO CONTINST
  32. .
  33. .
  34. .
  35.  
  36.  
  37. QEXIST.EXE was written in "C" and is a bound executable.  This means it
  38. will run under OS/2 and DOS.
  39.  
  40. Feel free to distribute this program and make as many copies as
  41. your heart desires, but you must not alter the program in any way
  42. and you must distribute this documentaion file unaltered.
  43.  
  44. If you find this utility useful, all I ask is that you send me
  45. $5.00 for my effort.
  46.  
  47. Send checks, money orders, loose diamonds, and of course cash to:
  48.  
  49. Paul Martin
  50. 901-A Ohio Pike
  51. Cincinnati, Ohio
  52. 45245
  53.  
  54. If you find any bugs or have any questions, you can reach me through
  55. USENET at pmartin@ucqais.uc.edu or through a local BBS I frequent, called
  56. C.C.C. (513)752-8248, (513)752-1544, (513)752-1542, (513)752-1055,
  57.        (513)752-8239, (513)752-0121, (513)752-0730
  58.  
  59.  
  60.