home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
HomeWare 14
/
HOMEWARE14.bin
/
windows
/
utils
/
ad20_c.arj
/
UPDATE.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-04-23
|
1KB
|
48 lines
@echo off
if not "%3" == "" goto test
Echo The proper usage is "%0 install_drive afterdark_directory windows_directory"
echo or for example "%0 a: c:\afterdrk c:\windows"
goto end
:test
if not exist %1\patch.exe echo Install drive is incorrect
if not exist %1\patch.exe goto warning
if not exist %2\ad.exe echo The Afterdrk directory is incorrect
if not exist %2\ad.exe goto warning
if not exist %3\ad_prefs.ini echo The Windows directory is incorrect.
if not exist %3\ad_prefs.ini goto warning
echo Updating After Dark windows to VER 2.0c
echo Install drive is: %1
echo Afterdark directory is: %2
echo Windows directory is: %3
pause
path > %2\oldpath.bat
copy %1\20C_AD.RTP %2
copy %1\20C_AF.RTP %2
copy %1\20C_AW.RTP %2
copy %1\sn.dat %2
copy %1\ppath.bat %2
path;
call %2\ppath %1
call %2\ppath %2
call %2\ppath %3
%1\patch.exe 20C_AD.RTP %2
%1\patch.exe 20C_AF.RTP %2
%1\patch.exe 20C_AW.RTP %3
call %2\oldpath.bat
del %2\oldpath.bat
del %2\sn.dat
del %2\ppath.bat
DEL %2\20C_AD.RTP
del %2\20C_AF.RTP
DEL %2\20C_AW.RTP
IF EXIST %3\ad.cfg del %3\ad.cfg
goto end
:warning
echo if anything went wrong you are getting this message.
echo Please type UPDATE "Updater install drive" "Afterdark dir" "Windows dir"
echo for example "UPDATE b: C:\win_apps\afterdrk d:\win31"
:end