home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
High Voltage Shareware
/
high1.zip
/
high1
/
DIR36
/
FIN7.ZIP
/
FIN627.BAT
next >
Wrap
DOS Batch File
|
1994-01-25
|
8KB
|
160 lines
@ECHO OFF
IF "%1"=="" GOTO SYNTAX:
ECHO ╔════════════════════════════════════════════════════════════════════════╗
ECHO ║Applying patch to upgrade Clarion Finance Library 3005 to revision 3007 ║
ECHO ║ ║
ECHO ╚════════════════════════════════════════════════════════════════════════╝
ECHO ╔════════════════════════════════════════════════════════════════════════╗
ECHO ║ WARNING: The files listed below will be overwritten! ║
ECHO ║ ║
ECHO ║ If you have made changes to any of these files, and wish to preserve ║
ECHO ║ those changes, Press CTRL-C NOW, and make backup copies. ║
ECHO ║ ║
ECHO ║ FINANCE.DLL, FINANCE.LIB, FINANCE.CLA, FINANCE.DOC, FINANCE.PR ║
ECHO ╚════════════════════════════════════════════════════════════════════════╝
pause
PATCH %1 FIN627.RTP
IF ERRORLEVEL 37 GOTO ERRORFILE
IF ERRORLEVEL 36 GOTO BADVER
IF ERRORLEVEL 35 GOTO SYNTAX
IF ERRORLEVEL 34 GOTO NOTADIR
IF ERRORLEVEL 29 GOTO NOSPACE
IF ERRORLEVEL 24 GOTO PATCH_COMPLETE
IF ERRORLEVEL 16 GOTO PATCH_COMPLETE
IF ERRORLEVEL 15 GOTO BADVER_15
IF ERRORLEVEL 9 GOTO BAD_PATCHFILE
IF ERRORLEVEL 8 GOTO BAD_PATCHEXE
IF ERRORLEVEL 5 GOTO NOTADIR
IF ERRORLEVEL 4 GOTO NOTADIR
IF ERRORLEVEL 1 GOTO SYNTAX
ECHO *
ECHO *
GOTO PATCH_COMPLETE
:NOTADIR
ECHO ╔═════════════════════════════════╗
ECHO ║ CANNOT FIND A DIRECTORY NAMED: ║ " %1 "
ECHO ╚═════════════════════════════════╝
GOTO SYNTAX
:SYNTAX
ECHO ╔═════════════════════════════════════════════════════════════╗
ECHO ║ This patch should be applied by UNZIPPING FIN7.ZIP ║
ECHO ║ then typing: ║
ECHO ║ ║
ECHO ║ FIN627 [DRIVE:\DIRECTORY] ║
ECHO ║ ║
ECHO ║ where [DRIVE:\DIRECTORY] is the name of the drive and path ║
ECHO ║ where CDD 3.0 is installed ║
ECHO ║ ║
ECHO ║ ║
ECHO ║ example: if CDD 3.0 is installed in C:\Clarion3 ║
ECHO ║ then type FIN627 C:\Clarion3 ║
ECHO ║ ║
ECHO ╚═════════════════════════════════════════════════════════════╝
GOTO EXIT
:ERRORFILE
ECHO An error occurred when Patch.exe was opening %1\Patch.err
ECHO ╔════════════════════════════════════════════════════════════════════╗
ECHO ║ The probable cause is some type of DOS error, retry the operation ║
ECHO ║ after checking the disks integrity. ║
ECHO ╚════════════════════════════════════════════════════════════════════╝
GOTO EXIT
:PATCH_COMPLETE
IF NOT EXIST %1\PATCH.ERR GOTO noerrors
ECHO
ECHO ╔═════════════════════════════════════════════════════╗
ECHO ║ PATCH HAS ERRORs, press any key to view error file ║
ECHO ║ after viewing the errors you can rerun the patch ║
ECHO ╠═════════════════════════════════════════════════════╣
ECHO ║ The following errors can be ignored: ║
ECHO ║ ║
ECHO ║ ept0016: New file already exists ║
ECHO ║ ept0024: New file already exists ║
ECHO ╚═════════════════════════════════════════════════════╝
EDITOR %1\PATCH.ERR
CLS
ECHO ╔══════════════════════════════════════════════════════════════════════╗
ECHO ║ A patchkit install set is available from Clarion Customer Service ║
ECHO ║ at 305-785-4555 for $10.00 plus shipping charges. ║
ECHO ║ ║
ECHO ╚══════════════════════════════════════════════════════════════════════╝
pause
GOTO EXIT
:missing_file
ECHO ╔════════════════════════════════════════════════════════════╗
ECHO ║ Cannot locate patch file(s) ║
ECHO ║ This patch should be applied by UNZIPPING FIN7.ZIP ║
ECHO ║ then typing: ║
ECHO ║ FIN627 [DRIVE:\DIRECTORY] ║
ECHO ╚════════════════════════════════════════════════════════════╝
GOTO EXIT
:BADVER
ECHO ╔════════════════════════════════════════════════════════════════════════╗
ECHO ║ error ept0036: Old file not found. However, a file of the same name ║
ECHO ║ was found. No update done since file contents do not match. ║
ECHO ║ ║
ECHO ║ PATCH was unable to locate an exact match for the original file to ║
ECHO ║ be updated. However, PATCH was able to locate a file with the same ║
ECHO ║ name as the original file. However, the file found did not have either ║
ECHO ║ the same size or checksum as the actual original file that PATCH is ║
ECHO ║ seeking in order to perform the update. ║
ECHO ╚════════════════════════════════════════════════════════════════════════╝
GOTO EXIT
:BADVER_15
ECHO ╔════════════════════════════════════════════════════════════════════════╗
ECHO ║ ║
ECHO ║ error ept0015: Old file does not exist ║
ECHO ║ ║
ECHO ║ PATCH needs Bytes from the existing version of a file in order to build║
ECHO ║ the new file. However, it was unable to locate the old file. ║
ECHO ╚════════════════════════════════════════════════════════════════════════╝
GOTO EXIT
:nospace
ECHO ╔════════════════════════════════════════════════════════════╗
ECHO ║ ║
ECHO ║ There is insufficient disk space to apply the Patch, ║
ECHO ║ please free up some space and reapply the Patch. ║
ECHO ║ ║
ECHO ╚════════════════════════════════════════════════════════════╝
GOTO EXIT
:BAD_PATCHFILE
ECHO ╔════════════════════════════════════════════════════════════╗
ECHO ║ error ept0009: ║
ECHO ║ PATCH.EXE was unable to read the correct information ║
ECHO ║ from the patch file. Get a new copy and rerun the PATCH ║
ECHO ║ ║
ECHO ╚════════════════════════════════════════════════════════════╝
GOTO EXIT
:BAD_PATCHEXE
ECHO ╔════════════════════════════════════════════════════════════╗
ECHO ║ error ept0008: PATCH.EXE and Patch file are incompatible ║
ECHO ║ ║
ECHO ║ You need a new copy of PATCH.EXE to apply this patch. ║
ECHO ║ ║
ECHO ╚════════════════════════════════════════════════════════════╝
GOTO EXIT
:NOERRORS
ECHO
ECHO ╔═════════════════════════════════════════════════╗
ECHO ║ Patch is complete, no errors encountered! ║
ECHO ╚═════════════════════════════════════════════════╝
:EXIT