home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / lotus / eSuite.exe / eSuiteDPP / samples / weatherchart / ATSTART.CMD next >
OS/2 REXX Batch file  |  1998-01-06  |  3KB  |  73 lines

  1. @echo off
  2. @REM
  3. @REM $Log:   //reebok/xyzL/JavaComp/webpack/samples/WEATHE~1/atstart.cmd  $
  4. @REM 
  5. @REM    Rev 1.3   12 Dec 1997 09:10:44   jdonohue
  6. @REM Environment variables must be set prior to starting
  7. @REM Added optional parameter /interactive to aid debugging
  8. @REM 
  9. @REM    Rev 1.2   01 Dec 1997 09:04:54   jdonohue
  10. @REM Fixed 'if not exist' typos
  11. @REM 
  12. @REM    Rev 1.1   26 Nov 1997 15:41:56   jdonohue
  13. @REM Remodelled batch files to use common environment variables
  14. @REM
  15. @REM atStart.cmd : Setup AT schedule for read-weather functions
  16. @REM
  17. @REM Must set the following system environment variables:
  18. @REM DEMODRIVE - install drive for kona webpack, e.g., c:
  19. @REM DEMOLOC - the demo install directory, e.g., \notes\data\domino\html\weatherchart
  20. @REM DEMOROOT - install directory for kona webpack, e.g., \notes\data\domino\html\kona
  21. @REM
  22. @REM
  23.  
  24. setlocal
  25.  
  26. if .%DEMODRIVE%==. goto explain
  27. if .%DEMOLOC%==. goto explain
  28. if .%DEMOROOT%==. goto explain
  29.  
  30. :doit
  31. if not exist %DEMODRIVE%%DEMOLOC% goto explain
  32. if not exist %DEMODRIVE%%DEMOROOT% goto explain
  33. AT 00:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  34. AT 01:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  35. AT 02:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  36. AT 03:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  37. AT 04:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  38. AT 05:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  39. AT 06:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  40. AT 07:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  41. AT 08:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  42. AT 09:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  43. AT 10:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  44. AT 11:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  45. AT 12:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  46. AT 13:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  47. AT 14:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  48. AT 15:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  49. AT 16:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  50. AT 17:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  51. AT 18:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  52. AT 19:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  53. AT 20:00 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadInit.cmd
  54. AT 20:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  55. AT 21:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  56. AT 22:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  57. AT 23:05 /EVERY:Su,M,T,W,Th,F,S %1 %DEMODRIVE%%DEMOLOC%\doReadW.cmd
  58. goto end
  59.  
  60. :explain
  61. @echo   
  62. @echo Usage: %0 [/interactive]
  63. @echo /interactive - Error window will be displayed
  64. @echo System environment variables DEMODRIVE, DEMOLOC and DEMOROOT must be set 
  65. @echo prior to calling this procedure
  66. @echo DEMODRIVE=%DEMODRIVE%
  67. @echo DEMOLOC=%DEMOLOC%
  68. @echo DEMOROOT=%DEMOROOT%
  69. @echo   
  70.  
  71. :end
  72. endlocal
  73.