home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Gamer 2.2
/
1996-03_Disc_2.2.iso
/
patches
/
mech2v11.exe
/
PATCH.BAT
next >
Wrap
DOS Batch File
|
1995-11-17
|
8KB
|
256 lines
@echo off
cls
if "%1"=="" goto format
if "%1"=="?" goto format
if "%1"=="/?" goto format
if exist %1\mw2.dll goto winmech
if exist %1\gbl.exe goto gblmech
if exist %1\french.lrm goto foreignmech
if exist %1\german.lrm goto foreignmech
if not exist %1\mw2.exe goto nomech
if not exist %1\mw2.prj goto nomech
if not exist patch11.exe goto nopatch
-----------------------------
:mainmenu
cls
echo.
echo You are about to apply the Version 1.1 patch to MechWarrior 2 DOS.
echo.
echo This patch will be applied from the current drive to the
echo following drive and path: %1
echo.
echo.
echo Do you want to begin patching MechWarrior 2?
echo.
echo 1 = I would like to view WHATSNEW.TXT which has important
echo information on the use and features of the 1.1 patch.
echo.
echo 2 = Yes, Please patch MechWarrior 2.
echo.
echo 3 = No, I don't want to patch MechWarrior 2 at this time.
echo.
echo.
choice /c:123
if errorlevel 3 goto patchnot
if errorlevel 2 goto patchit
if errorlevel 1 goto viewme
--------------------------------
:patchit
echo.
echo.
echo Applying MechWarrior 2 version 1.1 patch...
echo.
patch11
if not exist setup\fixboot.ex_ goto spaceout
del %1\mw2.exe
del %1\mw2shell.exe
if exist %1\giddi\avenger.cpc del %1\giddi\avenger.cpc
if exist %1\giddi\sidewndr.cpc del %1\giddi\sidewndr.cpc
if exist %1\giddi\vfx1.cpc del %1\giddi\vfx1.cpc
if exist %1\giddi\vpilot.cpc del %1\giddi\vpilot.cpc
if exist %1\giddi\avenger.dll del %1\giddi\avenger.dll
if exist %1\giddi\fltstck.dll del %1\giddi\fltstck.dll
if exist %1\giddi\joystick.dll del %1\giddi\joystick.dll
if exist %1\giddi\keyboard.dll del %1\giddi\keyboard.dll
if exist %1\giddi\mouse.dll del %1\giddi\mouse.dll
if exist %1\giddi\msjstick.dll del %1\giddi\msjstick.dll
if exist %1\giddi\sidewndr.dll del %1\giddi\sidewndr.dll
if exist %1\giddi\tmaster.dll del %1\giddi\tmaster.dll
if exist %1\giddi\vfx1.dll del %1\giddi\vfx1.dll
if exist %1\giddi\vio1.dll del %1\giddi\vio1.dll
if exist %1\giddi\vio2.dll del %1\giddi\vio2.dll
if exist %1\giddi\vpilot.dll del %1\giddi\vpilot.dll
if exist %1\giddi\sidewndr.std del %1\giddi\sidewndr.std
if exist %1\giddi\avenger.txt del %1\giddi\avenger.txt
if exist %1\giddi\vpilot.txt del %1\giddi\vpilot.txt
if exist %1\setup\fixboot.exe del %1\setup\fixboot.exe
move mw2.ex_ %1\mw2.exe
move mw2shell.ex_ %1\mw2shell.exe
move giddi\avenger.cp_ %1\giddi\avenger.cpc
move giddi\sidewndr.cp_ %1\giddi\sidewndr.cpc
move giddi\vfx1.cp_ %1\giddi\vfx1.cpc
move giddi\vpilot.cp_ %1\giddi\vpilot.cpc
move giddi\avenger.dl_ %1\giddi\avenger.dll
move giddi\fltstck.dl_ %1\giddi\fltstck.dll
move giddi\joystick.dl_ %1\giddi\joystick.dll
move giddi\keyboard.dl_ %1\giddi\keyboard.dll
move giddi\mouse.dl_ %1\giddi\mouse.dll
move giddi\msjstick.dl_ %1\giddi\msjstick.dll
move giddi\sidewndr.dl_ %1\giddi\sidewndr.dll
move giddi\tmaster.dl_ %1\giddi\tmaster.dll
move giddi\vfx1.dl_ %1\giddi\vfx1.dll
move giddi\vio1.dl_ %1\giddi\vio1.dll
move giddi\vio2.dl_ %1\giddi\vio2.dll
move giddi\vpilot.dl_ %1\giddi\vpilot.dll
move giddi\sidewndr.st_ %1\giddi\sidewndr.std
move giddi\avenger.tx_ %1\giddi\avenger.txt
move giddi\vpilot.tx_ %1\giddi\vpilot.txt
move setup\fixboot.ex_ %1\setup\fixboot.exe
if exist giddi\avenger.txt goto skip3
rd giddi
rd setup
:skip3
del patch11.exe
cls
echo.
echo Version 1.1 patching process complete. Your installation of MechWarrior 2
echo has been upgraded to version 1.1 in the %1 path. Remember: If
echo you reinstall MechWarrior 2 from CD, you must repatch the game in
echo order to take advantage of the version 1.1 improvements.
echo.
echo PATCH11.EXE has been deleted. You can also delete PATCH.BAT, README2.TXT
echo and WHATSNEW.TXT if you prefer. However, you might want to store the
echo MECH2V11.EXE file on a floppy disk in case you need to patch MechWarrior 2
echo at a later date.
echo.
echo Thank you for purchasing MechWarrior 2. Look for the MechWarrior 2
echo Expansion Pack Ghost Bear's Legacy, MechWarrior 2 for Windows 95, and
echo NetMech coming this Winter, 1995.
echo.
echo.
goto end
---------------------------
:patchnot
cls
echo.
echo Version 1.1 patching process cancelled.
echo.
goto end
---------------------------
:format
echo.
echo Use the following format to apply the MechWarrior 2 version 1.1 patch:
echo.
echo PATCH [drive and path where MechWarrior2 resides]
echo.
echo For instance, if you wish to patch MechWarrior 2 on your C drive, in the
echo GAMES\MECH2 directory, you would enter the following at the DOS prompt:
echo.
echo PATCH C:\GAMES\MECH2
echo.
echo Keep in mind that the MechWarrior 2 executable (MW2.EXE) must be installed
echo in the specified path of the specified drive. Otherwise, MechWarrior 2
echo will not be patched.
echo.
echo.
goto end
---------------------------
:spaceout
cls
echo.
echo YOU ARE OUT OF DISK SPACE.
echo.
ECHO You need about 2 MB of space on your drive to patch with the MechWarrior 2
echo version 1.1 patch. Please clear enough space or run patch from another
echo drive with enough free disk space. The patch files will now be deleted.
echo.
echo IF YOU ARE PATCHING FROM A FLOPPY DRIVE, PLEASE COPY MECH2V11.EXE TO
echo YOUR HARD DRIVE AND RUN IT. THE PATCH WILL NOT FUNCTION PROPERLY FROM
echo A FLOPPY DRIVE.
echo.
echo.
if exist mw2.ex_ del mw2.ex_
if exist mw2shell.ex_ del mw2shell.ex_
if not exist giddi\avenger.cp_ goto skip
cd giddi
if exist avenger.cp_ del *.cp_
if exist sidewndr.st_ del *.st_
if exist avenger.tx_ del *.tx_
if exist avenger.dl_ del *.dl_
cd ..
if not exist giddi\keyboard.dll rd giddi
:skip
goto end
---------------------------
:nomech
echo.
echo PATCH could not find MechWarrior 2 in the %1 path. Please run patch
echo again and specify the drive and path where MechWarrior 2 resides.
echo.
goto end
---------------------------
:nopatch
if not exist mw2v11.exe goto nomech2v11
echo.
echo PATCH could not find the file PATCH11.EXE in your current directory.
echo However, in order to create this file, you need only run MECH2V11.EXE
echo which IS located in this directory. After running this file, please
echo run PATCH again.
echo.
echo IMPORTANT NOTE - If you are attempting to run PATCH from a floppy drive,
echo it will not function properly. Copy MECH2V11.EXE to your hard drive
echo and run MECH2V11.EXE again. From your hard drive, PATCH will run properly.
echo.
goto end
---------------------------
:nomech2v11
echo.
echo PATCH could not find the file PATCH11.EXE in your current directory.
echo This file is needed in order to patch MechWarrior 2. However, in
echo order to create this file, you need only download and run MECH2V11.EXE
echo which you can find on your online service provider or local BBS.
echo.
echo IMPORTANT NOTE - If you are attempting to run PATCH from a floppy drive,
echo it will not function properly. Copy MECH2V11.EXE to your hard drive
echo and run MECH2V11.EXE again. From your hard drive, PATCH will run properly.
echo.
goto end
---------------------------
:winmech
echo.
echo This version 1.1 patch is intended for MechWarrior 2 DOS version 1.0
echo only. PATCH has detected the Windows 95 version of MechWarrior 2 in
echo the %1 path. This patch will not function with the
echo Windows 95 version which already incorporates the fixes in the
echo version 1.1 patch.
echo.
goto end
---------------------------
:foreignmech
echo.
echo This version 1.1 patch is intended for MechWarrior 2 DOS version 1.0
echo only. PATCH has detected a foreign language version of MechWarrior 2 in
echo the %1 path. This patch will not function with
echo foreign language versions which already incorporate some of the fixes
echo in the version 1.1 patch.
echo.
goto end
---------------------------
:gblmech
echo.
echo This version 1.1 patch is intended for MechWarrior 2 DOS version 1.0
echo only. PATCH has detected the Ghost Bear's Legacy Expansion Pack in
echo the %1 path. This patch will not function with
echo Ghost Bear's Legacy which already incorporate the fixes in the version 1.1
echo patch.
echo.
goto end
---------------------------
:viewme
echo.
cls
type whatsnew.txt |more
pause
goto mainmenu
---------------------------
:end
@echo on