home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Action 1996 February
/
PCA_0296.ISO
/
up_pa
/
dawn2
/
update.exe
/
CDPATCH.BAT
< prev
next >
Wrap
DOS Batch File
|
1995-02-16
|
1KB
|
42 lines
@echo off
if NOT "%1"=="" GOTO PATROL
echo Patching directory references to hard disk...
echo 9 brieftxt\>>cshare.dir
echo 10 script3d\>>cshare.dir
echo 11 bfield.red\>>cshare.dir
echo 12 bfield.blu\>>cshare.dir
echo 55 libs320.200\>>mgraphic.dir
echo 56 font320.200\>>mgraphic.dir
echo Identifying CD drive letter...
if exist sgraphic.dir echo 56 font640.400\>>sgraphic.dir
echo cdpatch %%1>50.bat
echo cdpatch %%1>51.bat
echo cdpatch %%1>52.bat
echo cdpatch %%1>53.bat
echo cdpatch %%1>54.bat
copy mgraphic.dir 50tmp.bat
50tmp
:PATROL
del 50.bat
del 51.bat
del 52.bat
del 53.bat
del 54.bat
del 50tmp.bat
copy patrol.exe patrol2.exe
if not exist patrol2.exe goto stopnow
echo CD drive test for %1DIR being added...
del patrol.exe
echo @echo off>patrol.bat
echo echo Checking CD drive for correct volume...>>patrol.bat
echo if not exist %1dir echo Key file not found on cd drive: %1dir.>>patrol.bat
echo if not exist %1dir echo Please insert correct CD and try again.>>patrol.bat
echo if not exist %1dir goto stopnow>>patrol.bat
echo patrol2 %%1 %%2>>patrol.bat
echo :stopnow>>patrol.bat
:stopnow
del cdpatch.bat