Category : C++ Source Code
Archive   : BC4P1-4.ZIP
Filename : INSTALL.BAT

Output of file : INSTALL.BAT contained in archive : BC4P1-4.ZIP
@echo off
@rem Save off env's, if already used
if not "%bc4patch%" == "" set oldbc4patch=%bc4patch%
set bc4patch=

@rem Argument checking
if "%0" == "INSTALL" goto Chkusage
if "%0" == "install" goto Chkusage
goto RunFromFloppy
if "%1" == "" goto Usage
if "%2" == "" goto Usage
if "%2" == "/B" goto Usage
if "%2" == "/b" goto Usage
if not "%3" == "" goto backup
if exist %1\patch.exe goto Warning

@rem Copy patch files
@echo Copying patch files into %1...
copy patch.exe %1
copy patch.exe %2
copy %1
copy bc4p01.rtp %1
copy bc4p02.rtp %1
copy bc4p03.rtp %1
copy ta4p01.rtp %1
copy bc4p04.rtp %2

@rem Running patch
cddr %1
@echo Running patch . . .
patch bc4p01.rtp %bc4patch%
@echo Running patch . . .
patch bc4p02.rtp %bc4patch%
@echo Running patch . . .
patch bc4p03.rtp %bc4patch%
@echo Running patch . . .
patch ta4p01.rtp %bc4patch%

@echo Cleaning up . . .
del patch.exe
del bc4p01.rtp
del bc4p02.rtp
del bc4p03.rtp
del ta4p01.rtp

cddr %2
del %1\
@echo Running patch . . .
patch bc4p04.rtp %bc4patch%

@echo Cleaning up . . .
del patch.exe
del bc4p04.rtp

@echo Patch completed.
goto End

if "%3" == "/b" set bc4patch=-backup
if "%3" == "/B" set bc4patch=-backup
if "%bc4patch%"=="" goto Usage
goto chkexist

@echo %1\patch.exe already exists. If you do not wish to
@echo overwrite it, then press Ctrl-Break to exit.
goto Copyrtp

@echo You must run install.bat from the floppy disk drive. For example,
@echo a:
@echo install c:\bc4 c:\windows
goto Usage

@echo Borland C++ 4.0 Patch Install
@echo install base_dir windows_dir [/b]
@echo where the base_dir is the base directory where BC4 is
@echo installed, windows_dir is the directory where Windows
@echo is installed and (the optional) /b specifies to backup the
@echo original file versions. For example,
@echo install c:\bc4 c:\windows /b
goto End

set bc4patch=
if not "%oldbc4patch%" == "" set bc4patch=%oldbc4patch%

  3 Responses to “Category : C++ Source Code
Archive   : BC4P1-4.ZIP
Filename : INSTALL.BAT

  1. Very nice! Thank you for this wonderful archive. I wonder why I found it only now. Long live the BBS file archives!

  2. This is so awesome! 😀 I’d be cool if you could download an entire archive of this at once, though.

  3. But one thing that puzzles me is the “mtswslnkmcjklsdlsbdmMICROSOFT” string. There is an article about it here. It is definitely worth a read: