home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Professional / OS2PRO194.ISO / os2 / com / utils / golded / v_240 / rungold.bat < prev    next >
Encoding:
DOS Batch File  |  1993-03-07  |  1.7 KB  |  76 lines

  1. @Echo off
  2.  
  3. ::  ------------------------------------------------------------------
  4. ::         G O L D E D   E X A M P L E   B A T C H   F I L E
  5. ::  ------------------------------------------------------------------
  6. ::  This batch file gives you a simple skeleton, where you can put
  7. ::  your mail scanners, packers and other processing you want done
  8. ::  after each GoldED session.
  9. ::  ------------------------------------------------------------------
  10.  
  11. :GOLDRUN
  12.     GOLDED.EXE
  13.  
  14. If ErrorLevel 101 Goto ERROR
  15. If ErrorLevel 100 Goto REBUILD
  16. If ErrorLevel 008 Goto ERROR
  17. If ErrorLevel 007 Goto E_N_L
  18. If ErrorLevel 006 Goto E_N__
  19. If ErrorLevel 005 Goto E___L
  20. If ErrorLevel 004 Goto E____
  21. If ErrorLevel 003 Goto __N_L
  22. If ErrorLevel 002 Goto __N__
  23. If ErrorLevel 001 Goto ____L
  24.                   Goto _____
  25.  
  26. :ERROR
  27.     Echo GoldED Error exit!
  28.     Goto END
  29.  
  30. :REBUILD
  31.     Echo ERROR! The QBBS index files needs rebuilding!
  32.     Echo.
  33.     Pause
  34.     MBUTIL.EXE Index -Recover -Delete
  35.     Goto GOLDRUN
  36.  
  37. :E_N_L
  38.     Echo **** New Echo, Net and Local mail entered!
  39.     Goto END
  40.  
  41. :E_N__
  42.     Echo **** New Echo and Netmail entered!
  43.     Goto END
  44.  
  45. :E___L
  46.     Echo **** New Echo and Local mail entered!
  47.     Goto END
  48.  
  49. :E____
  50.     Echo **** New Echomail entered!
  51.     Goto END
  52.  
  53. :__N_L
  54.     Echo **** New Net and Local mail entered!
  55.     Goto END
  56.  
  57. :__N__
  58.     Echo **** New Netmail entered!
  59.     Goto END
  60.  
  61. :____L
  62.     Echo **** New Local mail entered!
  63.     Goto END
  64.  
  65. :_____
  66.     Echo **** No new mail entered...
  67.     Goto END
  68.  
  69. :END
  70.     Echo.
  71.     Echo Thank you for using GoldED! :-)
  72.     Echo.
  73.     REM The End.
  74.  
  75. REM ------------------------------------------------------------------
  76.