home *** CD-ROM | disk | FTP | other *** search
/ PC World 1998 October / PCWorld_1998-10_cd.bin / software / prehled / lotus / eSuite.exe / eSuiteDPP / samples / weatherchart / CopyWeather.cmd < prev    next >
OS/2 REXX Batch file  |  1998-01-15  |  3KB  |  67 lines

  1. @echo off
  2. @REM
  3. @REM $Log:   //reebok/xyzL/JavaComp/webpack/samples/weatherchart/CopyWeather.cmd  $
  4. @REM 
  5. @REM    Rev 1.0.1.1   15 Jan 1998 09:32:24   jdonohue
  6. @REM Changed logic to call doCopyWeather.cmd each hour
  7. @REM 
  8. @REM    Rev 1.0   05 Jan 1998 13:24:24   jdonohue
  9. @REM Initial Revision
  10. @REM
  11. @REM
  12. @REM CopyWeather.cmd - Runs DoCopyWeather every hour
  13. @REM
  14. @REM This batch file starts Windows NT AT processes to call DoCopyWeather.cmd
  15. @REM to read weather from Intellicast source on the web and copy files 
  16. @REM onto the Lotus server, e.g.,
  17. @REM
  18. @REM http://www3.intellicast.com/weather/lga/curcond.dat ==> currcond.lga
  19. @REM
  20. @REM DEMODRIVE - install drive for kona webpack, e.g., c:
  21. @REM DEMOLOC - the demo install directory, e.g., \notes\data\domino\html\weatherchart
  22. @REM
  23. @REM The weather files are updated every hour
  24. @REM
  25. setlocal
  26. if .%DEMOLOC%==. goto explain
  27. if .%DEMODRIVE%==. goto explain
  28.  
  29. AT 00:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  30. AT 01:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  31. AT 02:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  32. AT 03:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  33. AT 04:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  34. AT 05:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  35. AT 06:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  36. AT 07:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  37. AT 08:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  38. AT 09:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  39. AT 10:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  40. AT 11:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  41. AT 12:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  42. AT 13:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  43. AT 14:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  44. AT 15:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  45. AT 16:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  46. AT 17:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  47. AT 18:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  48. AT 19:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  49. AT 20:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  50. AT 21:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  51. AT 22:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  52. AT 23:02 /EVERY:Su,M,T,W,Th,F,S %DEMODRIVE%%DEMOLOC%\doCopyweather.cmd
  53. goto end
  54.  
  55. :explain
  56. @echo   
  57. @echo Usage: %0 
  58. @echo Makes local copy of weather data from Intellicast web site
  59. @echo System environment variables DEMODRIVE and DEMOROOT must be set prior to
  60. @echo calling this procedure
  61. @echo DEMOROOT=%DEMOROOT%
  62. @echo DEMODRIVE=%DEMODRIVE%
  63. @echo   
  64.  
  65. :end
  66. endlocal
  67.