home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DP Tool Club 24
/
CD_ASCQ_24_0995.iso
/
vrac
/
aod12.zip
/
AODPATCH.BAT
next >
Wrap
DOS Batch File
|
1995-04-07
|
3KB
|
97 lines
@echo off
mode co80
rem ****************************************************************
rem *
rem * Batch file to install the AOD patch disk to a hard drive
rem *
rem * copyright 1995 Dynamix
rem ****************************************************************
:getCurDir
IF NOT EXIST patfiles\nul goto sameDir
cd patfiles
:==== sameDir ====
IF NOT EXIST cddat.dat goto fmissing
copy cddat.dat tempcd.bat>nul
CD >> tempcd.bat
CALL tempcd.bat
IF EXIST %dirtemp%tempcd.bat goto langSel
IF EXIST %dirtemp%\tempcd.bat goto addslash
echo.
echo Unable to create environment variable
echo Install failed ( You may be out of DOS environment space ).
echo.
goto end
:addslash
rem ------------ append a backslash to the directory name variable -----
SET dirtemp=%dirtemp%\
goto langSel
:langSel
rem --- get rid of the temporary file -------
del tempcd.bat
cls
echo.
echo.
echo ┌────────────── AOD PATCH INSTALLATION ────────────────┐
echo │ Copyright 1995 Dynamix │
echo │ │
echo │ │
echo │ If you want to run the program in English, press 'E'. │
echo │ │
echo │ Pour utiliser le programme en français, appuyez sur 'F'.│
echo │ │
echo │ Um das Spiel in Deutsch zu spielen, 'D' eingeben. │
echo │ │
echo │ │
echo └─────────────────────────────────────────────────────────┘
echo.
echo.
GK.COM
:checkKey
IF ERRORLEVEL 113 IF NOT ERRORLEVEL 114 GOTO end
IF ERRORLEVEL 102 IF NOT ERRORLEVEL 103 GOTO French
IF ERRORLEVEL 101 IF NOT ERRORLEVEL 102 GOTO English
IF ERRORLEVEL 100 IF NOT ERRORLEVEL 101 GOTO German
IF ERRORLEVEL 81 IF NOT ERRORLEVEL 82 GOTO end
IF ERRORLEVEL 70 IF NOT ERRORLEVEL 71 GOTO French
IF ERRORLEVEL 69 IF NOT ERRORLEVEL 70 GOTO English
IF ERRORLEVEL 68 IF NOT ERRORLEVEL 69 GOTO German
IF EXIST aodpatch.bat goto end
cd..
goto end
:English
cls
call eng.bat %dirtemp% %1
goto end
:German
cls
call ger.bat %dirtemp% %1
goto end
:French
cls
call frn.bat %dirtemp% %1
goto end
:fmissing
cls
echo.
echo Patch install could not locate the file CDDAT.DAT. Please check
echo to make sure you have all the necessary patch files before running
echo patch.bat again.
echo.
goto end
:end
SET dirtemp=