home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World 1998 October
/
PCWorld_1998-10_cd.bin
/
software
/
prehled
/
lotus
/
eSuite.exe
/
eSuiteDPP
/
samples
/
weatherchart
/
doReadInit.cmd
< prev
next >
Wrap
OS/2 REXX Batch file
|
1998-01-06
|
1KB
|
59 lines
@echo off
REM
REM $Log: //reebok/xyzL/JavaComp/webpack/samples/WEATHE~1/doReadInit.cmd $
@REM
@REM Rev 1.1 26 Nov 1997 15:42:30 jdonohue
@REM Remodelled batch files to use common environment variables
REM
REM
REM Initialize weather data files (called by ATstart.cmd)
REM
REM
REM Switch to directory for data files
REM
REM This must be set by caller (ATSTART.CMD)
if .%DEMODRIVE%==. goto abort
if .%DEMOLOC%==. goto abort
%DEMODRIVE%
cd %DEMOLOC%
REM
REM Delete saved log, rename current log to save
REM
del rweather.sav
rename rweather.log rweather.sav
@echo ReadWeather Log for: > rweather.log
date /T >> rweather.log
REM
REM Rename current data-set files for rolling-save of 5-days worth
REM
if exist *.5? del *.5?
if exist *.4? ren *.4? *.5?
if exist *.3? ren *.3? *.4?
if exist *.2? ren *.2? *.3?
if exist *.1? ren *.1? *.2?
ren *.TEM *.1t
ren *.HUM *.1h
ren *.BAR *.1b
REM
REM Create new 'empty' files
REM
call doMakeDat.cmd newyork "New York"
call doMakeDat.cmd losangeles "Los Angeles"
call doMakeDat.cmd detroit "Detroit"
call doMakeDat.cmd chicago "Chicago"
call doMakeDat.cmd chattanooga "Chattanooga"
call doMakeDat.cmd batonrouge "Baton Rouge"
goto end
:abort
@echo DEMOLOC and DEMODRIVE must be defined
:end