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 >
DOS Batch File  |  1993-10-14  |  3KB  |  83 lines

  1. @echo off
  2. REM ############################################################################
  3. REM #                                             #
  4. REM #                            NGM 2.00B UPGRADE                             #
  5. REM #                            September 30, 1993                            #
  6. REM #                                                                          #
  7. REM ############################################################################
  8.  
  9. : This batch file must be copied to and run from the root NGM directory
  10. : (EX: \NGM)
  11.  
  12.  
  13. if not exist .\patch.exe goto nopatch
  14. if not exist .\ngm20B.rtp goto nopatch
  15. if not exist .\fserial.exe goto nopatch
  16. cls
  17. echo The NetWare Global MHS patch v2.00B process may take upwards of 15
  18. echo minutes, depending on your system type and the number of files 
  19. echo to be updated. Review the file RESULTS.TXT upon completion.
  20. echo  
  21. echo PATCHING in progress - WORKING !!!
  22. : grab old serial number/convert to hexadecimal/write new serial # to file.
  23. fserial
  24. if not exist .\nuserial.dat goto NOSERIAL
  25. if exist results.txt copy results.txt results.bak
  26.  
  27. PATCH /S  ngm20B.rtp   > results.txt
  28. if errorlevel 1 goto FAIL
  29. goto DONE
  30.  
  31.  
  32. :NOPATCH
  33. cls
  34. echo  
  35. echo ERROR - Please verify the following files exist in the root NGM directory.
  36. echo  
  37. echo         1. PATCH.EXE
  38. echo         2. NGM20B.RTP
  39. echo         3. PATCHNGM.BAT
  40. echo         4. FSERIAL.EXE
  41. echo  
  42. echo         Change to the NGM root directory and type 'PATCHNGM'.
  43. echo  
  44. goto end
  45.  
  46. :DONE
  47. cls
  48. echo  
  49. echo The NGM 2.00B Upgrade has completed. Please examine the file 'RESULTS.TXT'
  50. echo to verify the successful completion of this upgrade procedure.
  51. del .\nuserial.dat
  52. goto end
  53.  
  54. :FAIL
  55. echo  
  56. echo ERROR - An error has occurred which has caused this NGM v2.00B upgrade to
  57. echo         FAIL. If the .\BACKUP directory exists on your system you must 
  58. echo         perform the following before attempting to install the patch
  59. echo         again. 
  60. echo  
  61. echo                  1.  From the .\BACKUP directory copy UNPATCH.BAK to
  62. echo                      UNPATCH.BAT.
  63. echo                  2.  Type UNPATCH.BAT.
  64. echo                  3.  After the system is restored, delete the .\BACKUP
  65. echo                      directory and its contents. 
  66. echo                 
  67. echo         Check your system configuration and rerun "PATCHNGM.BAT". If you
  68. echo         continue to experience problems, contact your local Novell
  69. echo         representative.
  70. echo  
  71. goto end
  72.  
  73. :NOSERIAL
  74. echo  
  75. echo ERROR - The serial number conversion has failed. The patch process will
  76. echo         attempt to extract the old serial number from the file 'NGM.NLM'
  77. echo         located in the NGM\BIN directory. Please verify that you have
  78. echo         installed the patch programs in the NGM root directory and rerun
  79. echo         'Patchngm.bat'. 
  80. echo  
  81.  
  82. :END
  83.