home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Network Support Encyclopedia 96-1
/
novell-nsepro-1996-1-cd2.iso
/
download
/
netware
/
ngm170.exe
/
PATCHNGM.BAT
< prev
next >
Wrap
DOS Batch File
|
1993-10-14
|
3KB
|
83 lines
@echo off
REM ############################################################################
REM # #
REM # NGM 2.00B UPGRADE #
REM # September 30, 1993 #
REM # #
REM ############################################################################
: This batch file must be copied to and run from the root NGM directory
: (EX: \NGM)
if not exist .\patch.exe goto nopatch
if not exist .\ngm20B.rtp goto nopatch
if not exist .\fserial.exe goto nopatch
cls
echo The NetWare Global MHS patch v2.00B process may take upwards of 15
echo minutes, depending on your system type and the number of files
echo to be updated. Review the file RESULTS.TXT upon completion.
echo
echo PATCHING in progress - WORKING !!!
: grab old serial number/convert to hexadecimal/write new serial # to file.
fserial
if not exist .\nuserial.dat goto NOSERIAL
if exist results.txt copy results.txt results.bak
PATCH /S ngm20B.rtp > results.txt
if errorlevel 1 goto FAIL
goto DONE
:NOPATCH
cls
echo
echo ERROR - Please verify the following files exist in the root NGM directory.
echo
echo 1. PATCH.EXE
echo 2. NGM20B.RTP
echo 3. PATCHNGM.BAT
echo 4. FSERIAL.EXE
echo
echo Change to the NGM root directory and type 'PATCHNGM'.
echo
goto end
:DONE
cls
echo
echo The NGM 2.00B Upgrade has completed. Please examine the file 'RESULTS.TXT'
echo to verify the successful completion of this upgrade procedure.
del .\nuserial.dat
goto end
:FAIL
echo
echo ERROR - An error has occurred which has caused this NGM v2.00B upgrade to
echo FAIL. If the .\BACKUP directory exists on your system you must
echo perform the following before attempting to install the patch
echo again.
echo
echo 1. From the .\BACKUP directory copy UNPATCH.BAK to
echo UNPATCH.BAT.
echo 2. Type UNPATCH.BAT.
echo 3. After the system is restored, delete the .\BACKUP
echo directory and its contents.
echo
echo Check your system configuration and rerun "PATCHNGM.BAT". If you
echo continue to experience problems, contact your local Novell
echo representative.
echo
goto end
:NOSERIAL
echo
echo ERROR - The serial number conversion has failed. The patch process will
echo attempt to extract the old serial number from the file 'NGM.NLM'
echo located in the NGM\BIN directory. Please verify that you have
echo installed the patch programs in the NGM root directory and rerun
echo 'Patchngm.bat'.
echo
:END