home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 11 Util / 11-Util.zip / ertime12.zip / TEST.BAT < prev   
DOS Batch File  |  1995-04-08  |  3KB  |  156 lines

  1. @echo off
  2.  
  3. doorhrs
  4.  
  5. if errorlevel 23 goto hour23
  6. if errorlevel 22 goto hour22
  7. if errorlevel 21 goto hour21
  8. if errorlevel 20 goto hour20
  9. if errorlevel 19 goto hour19
  10. if errorlevel 18 goto hour18
  11. if errorlevel 17 goto hour17
  12. if errorlevel 16 goto hour16
  13. if errorlevel 15 goto hour15
  14. if errorlevel 14 goto hour14
  15. if errorlevel 13 goto hour13
  16. if errorlevel 12 goto hour12
  17. if errorlevel 11 goto hour11
  18. if errorlevel 10 goto hour10
  19. if errorlevel 9 goto hour9
  20. if errorlevel 8 goto hour8
  21. if errorlevel 7 goto hour7
  22. if errorlevel 6 goto hour6
  23. if errorlevel 5 goto hour5
  24. if errorlevel 4 goto hour4
  25. if errorlevel 3 goto hour3
  26. if errorlevel 2 goto hour2
  27. if errorlevel 1 goto hour1
  28. if errorlevel 0 goto hour0
  29. goto endbat
  30.  
  31. :hour23
  32.  REM put commands here
  33.  echo Commands will execute between 23:00 to 23:59
  34.  goto endbat
  35.  
  36. :hour22
  37.  REM put commands here
  38.  echo Commands will execute between 22:00 to 22:59
  39.  goto endbat
  40.  
  41. :hour21
  42.  REM put commands here
  43.  echo Commands will execute between 21:00 to 21:59
  44.  goto endbat
  45.  
  46. :hour20
  47.  REM put commands here
  48.  echo Commands will execute between 20:00 to 20:59
  49.  goto endbat
  50.  
  51. :hour19
  52.  REM put commands here
  53.  echo Commands will execute between 19:00 to 19:59
  54.  goto endbat
  55.  
  56. :hour18
  57.  REM put commands here
  58.  echo Commands will execute between 18:00 to 18:59
  59.  goto endbat
  60.  
  61. :hour17
  62.  REM put commands here
  63.  echo Commands will execute between 17:00 to 17:59
  64.  goto endbat
  65.  
  66. :hour16
  67.  REM put commands here
  68.  echo Commands will execute between 16:00 to 16:59
  69.  goto endbat
  70.  
  71. :hour15
  72.  REM put commands here
  73.  echo Commands will execute between 15:00 to 15:59
  74.  goto endbat
  75.  
  76. :hour14
  77.  REM put commands here
  78.  echo Commands will execute between 14:00 to 14:59
  79.  goto endbat
  80.  
  81. :hour13
  82.  REM put commands here
  83.  echo Commands will execute between 13:00 to 13:59
  84.  goto endbat
  85.  
  86. :hour12
  87.  REM put commands here
  88.  echo Commands will execute between 12:00 to 12:59
  89.  goto endbat
  90.  
  91. :hour11
  92.  REM put commands here
  93.  echo Commands will execute between 11:00 to 11:59
  94.  goto endbat
  95.  
  96. :hour10
  97.  REM put commands here
  98.  echo Commands will execute between 10:00 to 10:59
  99.  goto endbat
  100.  
  101. :hour9
  102.  REM put commands here
  103.  echo Commands will execute between 09:00 to 09:59
  104.  goto endbat
  105.  
  106. :hour8
  107.  REM put commands here
  108.  echo Commands will execute between 08:00 to 08:59
  109.  goto endbat
  110.  
  111. :hour7
  112.  REM put commands here
  113.  echo Commands will execute between 07:00 to 07:59
  114.  goto endbat
  115.  
  116. :hour6
  117.  REM put commands here
  118.  echo Commands will execute between 06:00 to 06:59
  119.  goto endbat
  120.  
  121. :hour5
  122.  REM put commands here
  123.  echo Commands will execute between 05:00 to 05:59
  124.  goto endbat
  125.  
  126. :hour4
  127.  REM put commands here
  128.  echo Commands will execute between 04:00 to 04:59
  129.  goto endbat
  130.  
  131. :hour3
  132.  REM put commands here
  133.  echo Commands will execute between 03:00 to 03:59
  134.  goto endbat
  135.  
  136. :hour2
  137.  REM put commands here
  138.  echo Commands will execute between 02:00 to 02:59
  139.  goto endbat
  140.  
  141. :hour1
  142.  REM put commands here
  143.  echo Commands will execute between 01:00 to 01:59
  144.  goto endbat
  145.  
  146. :hour0
  147.  REM put commands here
  148.  echo Commands will execute between 00:00 to 00:59
  149.  
  150. :endbat
  151. REM Put your cleanup routines here.
  152. echo.
  153. echo Done!
  154. echo.
  155.  
  156.