home *** CD-ROM | disk | FTP | other *** search
/ Technotools / Technotools (Chestnut CD-ROM)(1993).ISO / lantools / checknet / example.bat < prev   
Encoding:
DOS Batch File  |  1990-06-13  |  1.7 KB  |  54 lines

  1. Echo off
  2. Rem ***************************************************************************
  3. Rem * Program Name .. EXAMPLE.BAT                                             *
  4. Rem *              .. checknet EXAMPLE BATch file                             *
  5. Rem *              ..          ^^^^^^^ ^^^                                    *
  6. Rem * Created On .... 06/14/90                                                *
  7. Rem *         By .... Higgins, Inc.                                           *
  8. Rem *            ....                                                         *
  9. Rem * Purpose ....... CheckNet usage example.                                 *
  10. Rem ***************************************************************************
  11. Cls
  12.  
  13. CheckNet
  14.  
  15. Rem * Remember, the DOS errorlevel is a stack.  When errorlevel three is true, 
  16. Rem * errorlevel two, one, and zero are also true.  Always evaluate errorlevels
  17. Rem * heirarchically.
  18.  
  19. If Errorlevel = 3 Goto USERS
  20. If Errorlevel = 2 Goto RIGHTS
  21. If Errorlevel = 1 Goto LOGIN
  22.  
  23. Echo .
  24. Echo .
  25. Echo Backup software would be executed now.
  26. Echo .
  27. Echo .
  28. Goto FINIS
  29.  
  30. :USERS
  31. Echo .
  32. Echo You must logout the above users before you can continue with the backup.
  33. Pause
  34. Goto FINIS
  35.  
  36. :RIGHTS
  37. Echo .
  38. Echo Please check your rights to this directory area.  You must have rights to
  39. Echo CREATE files in this directory area.  If you have this right or you are
  40. Echo running this program on a local drive, insure the drive is not full and/or
  41. Echo you have not exausted all available directory handles.
  42. Echo .
  43. Echo You must solve this problem before you can continue with the backup.
  44. Pause
  45. Goto FINIS
  46.  
  47. :LOGIN
  48. Echo .
  49. Echo You must log on to the network before you can continue with the backup.
  50. Pause
  51. Goto FINIS
  52.  
  53. :FINIS
  54.