home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / ngm207.exe / PATCHNGM.BAT < prev    next >
DOS Batch File  |  1994-10-10  |  2KB  |  70 lines

  1. @echo off
  2. REM #############################################################################
  3. REM #                                               #
  4. REM #                    NetWare Global MHS 2.0d Upgrade                        #
  5. REM #                           October 10, 1994                                #
  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 .\ngm20d.rtp goto nopatch
  15. cls
  16. echo The NetWare Global MHS v2.0d patch process may take a few minutes,
  17. echo depending on your system type and the number of files to be updated. 
  18. echo Review the file RESULTS.TXT upon completion.
  19. echo  
  20. echo PATCHING in progress - WORKING !!!
  21.  
  22. if exist results.txt copy results.txt results.bak
  23.  
  24. PATCH /S  ngm20d.rtp   > results.txt
  25. if errorlevel 1 goto FAIL
  26. goto DONE
  27.  
  28.  
  29. :NOPATCH
  30. cls
  31. echo  
  32. echo ERROR - Please verify the following files exist in the root NGM directory.
  33. echo  
  34. echo         1. PATCH.EXE
  35. echo         2. NGM20D.RTP
  36. echo         3. PATCHNGM.BAT
  37. echo  
  38. echo         Change to the NGM root directory and type 'PATCHNGM'.
  39. echo  
  40. goto end
  41.  
  42. :DONE
  43. cls
  44. echo  
  45. echo The NetWare Global MHS v2.0d Upgrade has completed. Please examine the
  46. echo file 'RESULTS.TXT' to verify the successful completion of this upgrade
  47. echo procedure.
  48. echo  
  49. goto end
  50.  
  51. :FAIL
  52. echo  
  53. echo ERROR - An error has occurred which has caused this NetWare Global MHS
  54. echo         v2.0d upgrade to FAIL. If the .\BACKUP directory exists
  55. echo         on your system you must perform the following before attempting
  56. echo         to install the patch again. 
  57. echo  
  58. echo                  1.  From the .\BACKUP directory copy UNPATCH.BAK to
  59. echo                      UNPATCH.BAT.
  60. echo                  2.  Type UNPATCH.BAT.
  61. echo                  3.  After the system is restored, delete the .\BACKUP
  62. echo                      directory and its contents. 
  63. echo                 
  64. echo         Check your system configuration and rerun "PATCHNGM.BAT". If
  65. echo         you continue to experience problems, contact your local Novell
  66. echo         representative.
  67. echo  
  68.  
  69. :END
  70.