home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The World of Computer Software
/
World_Of_Computer_Software-02-385-Vol-1of3.iso
/
x
/
xtrdos.zip
/
XQLOPT.ZIP
/
PATCH21B.BAT
next >
Wrap
DOS Batch File
|
1992-09-08
|
3KB
|
126 lines
echo off
if %2! == ! goto begin
if %2 == /e goto thecom
goto begin
::
:thecom
::
COMMAND /C /E:1024 PATCH21B
::
:BEGIN
::
CLS
echo *** MAKE SURE THAT YOU USE THE ORIGINAL (UNPATCHED) RELEASED VERSION
echo OF THE PRODUCT YOU ARE PATCHING. PATCHING AN ALREADY PATCHED COPY
echo MAY CAUSE UNPREDICTABLE ERRORS.
echo
echo This batch file patches VERSION 2.11b products ONLY.
echo
::
:START
::
SET ORG21B=XQLP21B.ORG
SET FILE21B=XQLP.EXE
SET PAT21B=XQLP.21b
GOTO PATCH
::
:XQLPO
::
CLS
echo *** MAKE SURE THAT YOU USE THE ORIGINAL (UNPATCHED) RELEASED VERSION
echo OF THE PRODUCT YOU ARE PATCHING. PATCHING AN ALREADY PATCHED COPY
echo MAY CAUSE UNPREDICTABLE ERRORS.
echo
echo
SET ORG21B=XQLPO21B.ORG
SET FILE21B=XQLPO.EXE
SET PAT21B=XQLPO.21b
GOTO PATCH
::
:PATCH
IF NOT EXIST PI.EXE GOTO NOPI
IF NOT EXIST %PAT21B% GOTO XERROR
IF NOT EXIST %FILE21B% GOTO EERROR
IF NOT EXIST %ORG21B% REN %FILE21B% %ORG21B%
:PATORG
echo
echo %FILE21B% VERSION 2.11b ** PATCHING .............
echo
COPY %ORG21B% %FILE21B%
PI %FILE21B% %PAT21B% >NUL
IF ERRORLEVEL == 9 GOTO VERR
IF ERRORLEVEL == 0 GOTO SUCCESS
GOTO UNKNOWN
::
:NOPI
echo
echo CANNOT FIND PI.EXE
echo
echo The Novell Patch Install Utility (PI.EXE) is required to install
echo the patches for this product. Please copy PI.EXE to the directory
echo you are working in............................................
GOTO END
::
:XERROR
echo
echo CANNOT FIND %PAT21B%
GOTO END
::
:EERROR
IF EXIST %ORG21B% GOTO PATORG
echo
echo CANNOT FIND %FILE21B%
GOTO END
::
:VERR
CLS
ECHO ***** BYTE VERIFICATION FAILED *****
ECHO
ECHO YOU ARE NOT PATCHING THE ORIGINAL %FILE21B%
ECHO
ECHO PLEASE COPY THE ORIGINAL %FILE21B% TO THE CURRENT
ECHO DIRECTORY AND TRY AGAIN.
COPY %ORG21B% %1.BAD
DEL %ORG21B%
GOTO END
::
:SUCCESS
ECHO
ECHO PATCHES FOR %FILE21B% SUCCESSFULLY INSTALLED.......
ECHO
GOTO FIXED
::
:UNKNOWN
CLS
ECHO ***** UNKNOWN ERROR *****
ECHO
ECHO AN UNKNOWN ERROR HAS OCCURRED WHILE PATCHING %FILE21B%
ECHO
ECHO PLEASE CALL YOUR TECHNICAL SUPPORT REPRESENTATIVE FOR HELP.....
ECHO
GOTO END
::
:FIXED
echo
echo %FILE21B% VERSION 2.11b ** PATCH COMPLETE **
echo
echo
echo ***** NOTICE: The %ORG21B% file in your current directory is the
echo original. This batch file renames %FILE21B% to %ORG21B%
echo if it does not find %ORG21B%. This will allow you to
echo keep the original on hand without patches applied.
echo The next time the patches are applied, it looks for
echo the %ORG21B% file first. Thus, patches will always be
echo applied to the unpatched version.
echo
echo IT IS YOUR RESPONSIBILITY TO PLACE THE UNPATCHED VERSION
echo IN THIS DIRECTORY THE FIRST TIME YOU USE THIS BATCH FILE.
echo
PAUSE
::
:END
IF %ORG21B% == XQLP21B.ORG GOTO XQLPO
SET ORG21B=
SET FILE21B=
SET PAT21B=