home *** CD-ROM | disk | FTP | other *** search
/ Network Support Encyclopedia 96-1 / novell-nsepro-1996-1-cd2.iso / download / netware / pnwupw.exe / UPDATEW.BAT < prev    next >
DOS Batch File  |  1995-07-07  |  6KB  |  181 lines

  1. @echo off
  2. CLS
  3. IF "%1" == "/?" GOTO HELP
  4. IF "%1" == "HELP" GOTO HELP
  5. IF "%1" == "help" GOTO HELP
  6. IF "%1" == "Help" GOTO HELP
  7. IF "%1" == "INFO" GOTO INFO
  8. IF "%1" == "Info" GOTO INFO
  9. IF "%1" == "info" GOTO INFO
  10.  
  11. REM assume default installation to c:\windows, set the dos environment
  12. rem of windir to default installation path.  check to see if a parameter
  13. rem was entered on the command line after UPDATEW, if so, then reset
  14. rem the dos windir environment to that parameter and then copy the update
  15. rem files to that specification...assume user enters path correctly.
  16. REM
  17.  
  18. SET WINDIR=C:\WINDOWS
  19. IF "%1" == "" GOTO CONT
  20. SET WINDIR=%1
  21. GOTO CONT
  22.  
  23. :CONT
  24. echo ******************************************************************
  25. echo                     PLEASE READ BEFORE PROCEEDING !!!
  26. echo.
  27. echo This update batch file is provided by Novell to assist in updating
  28. echo the Personal NetWare files for MS Windows.  It assumes MS Windows
  29. echo was installed to the default path of C:\WINDOWS.  If MS WINDOWS
  30. echo was not installed to the default path, end this batch file
  31. echo and type UPDATEW HELP.
  32. echo.
  33. echo This update file DOES NOT contain the update DOS files for Personal
  34. echo NetWare.  For information on updating the DOS files for Personal 
  35. echo NetWare type UPDATEW INFO.
  36. echo.
  37. echo Important information will be displayed when the batch file 
  38. echo finishes. Or, you can type UPDATEW INFO to display the information
  39. echo without installing the update files.
  40. echo ******************************************************************
  41. echo.
  42. echo Press "ctrl" and "C" and answer "Y" to halt this batch process
  43. echo.
  44. echo OR
  45. echo.
  46. pause
  47.  
  48. CLS
  49. echo.
  50. ECHO UPDATEW will now "clean up" files in %WINDIR%, if the file to
  51. echo be "cleaned up" is not present, a "File Not Found" message may
  52. echo appear.  This is not a problem.
  53. echo.
  54. pause
  55. ECHO.
  56. del %WINDIR%\NW*.DLL
  57. DEL %WINDIR%\PNW.DLL
  58. DEL %WINDIR%\VIPX.386
  59. DEL %WINDIR%\VNETWARE.386
  60. DEL %WINDIR%\VPICDA.386
  61.  
  62. rem Make backup copies of drivers before installing the new ones
  63. REm %WINDIR%\SYSTEM\NW*.DLL *.OLD
  64. REm 
  65.  
  66. REM copy the update files by moving in and out of the directories at this
  67. rem tree level.  destination path is the dos environment WINDIR.
  68. REM
  69.  
  70. REM COPY FILES FROM WINDR2.EXE
  71.  
  72. copy %windir%\system\nwpopup.exe %windir%\system\nwpopup.old
  73. copy nwpopup.exe %WINDIR%\SYSTEM
  74.  
  75. cd vlmdrvs
  76. copy %windir%\system\nwuser.exe %windir%\system\nwuser.old
  77. copy NWUSER.exe %WINDIR%\SYSTEM
  78. copy %windir%\system\netware.drv %windir%\system\netware.old
  79. COPY NETWARE.drv %WINDIR%\SYSTEM
  80.  
  81. copy %windir%\nls\*.001 %windir%\nls\*.old
  82. COPY *.001 %WINDIR%\NLS
  83. CD..
  84.  
  85. CD VXDS
  86. copy %WINDIR%\SYSTEM\vipx.386 %WINDIR%\SYSTEM\vipx.old
  87. copy %WINDIR%\SYSTEM\vnetware.386 %WINDIR%\SYSTEM\vnetware.old
  88. COPY vipx.386 %WINDIR%\SYSTEM
  89. copy vnetware.386 %WINDIR%\SYSTEM
  90. CD..
  91.  
  92. REM NWDLL2.EXE
  93. echo.
  94. rem copy files from NWDLL2.EXE to Windows\System
  95. cd nwdll
  96. copy %WINDIR%\SYSTEM\nwcalls.dll %WINDIR%\SYSTEM\nwcalls.old
  97. copy %WINDIR%\SYSTEM\nwipxspx.dll %WINDIR%\SYSTEM\nwipxspx.old
  98. copy %WINDIR%\SYSTEM\nwlocale.dll %WINDIR%\SYSTEM\nwlocale.old
  99. copy %WINDIR%\SYSTEM\nwnet.dll %WINDIR%\SYSTEM\nwnet.old
  100. copy %WINDIR%\SYSTEM\nwpsrv.dll %WINDIR%\SYSTEM\nwpsrv.old
  101. copy %WINDIR%\SYSTEM\nwgdi.dll %WINDIR%\SYSTEM\nwgdi.old
  102. copy %WINDIR%\SYSTEM\pnw.dll %WINDIR%\SYSTEM\pnw.old
  103.  
  104. copy *.* %WINDIR%\system
  105. cd..
  106. echo.
  107. echo If you have MS Windows currently running, you need to exit and restart
  108. echo MS Windows so the update files can be loaded.
  109. echo.
  110. GOTO INFO1
  111.  
  112. :HELP
  113. CLS
  114. echo Personal NetWare for MS Windows Update Batch File
  115. ECHO.
  116. ECHO     USAGE:  UPDATEW (d:\path or INFO)
  117. echo.
  118. echo If MS Windows was installed to the default path of: C:\WINDOWS,
  119. ECHO then run:
  120. echo.
  121. echo     UPDATEW
  122. echo.
  123. echo If MS Windows was installed to a nondefault path, run UPDATEW
  124. echo followed by the full path to MS Windows.
  125. echo.
  126. echo Example: If MS Windows was installed to D:\WIN then run:
  127. echo.
  128. echo     UPDATEW D:\WIN
  129. echo.
  130. echo Important information is included in this batch file.  To 
  131. echo display the information only and NOT copy the update files, type:
  132. echo.
  133. echo     UPDATEW INFO
  134. echo.
  135. GOTO end
  136.  
  137. :INFO
  138. echo.
  139. echo.
  140. echo ******************************************************************
  141. echo This is an automated process for installing the Personal NetWare 
  142. echo for MS Windows update files contained in WINDR2.EXE and NWDLL2.EXE.
  143. echo.
  144. echo The Personal NetWare DOS files MUST be installed prior to running
  145. echo this MS Windows update file.  Download PNWUPD.EXE and follow the
  146. echo same instructions as for this MS Windows update, except the "W" is
  147. echo replaced with "D" (for DOS).  Run PNWUPD to extract the files and 
  148. echo then run UPDATED to run the update for DOS automated process.
  149. echo.
  150. GOTO INFO2
  151. :INFO1
  152. echo ******************************************************************
  153. :INFO2
  154. echo All machines on the network need to be updated.  This same UPDATEW
  155. echo batch process can be run across the network.
  156. echo.
  157. pause
  158. echo.
  159. echo This update file has been customized to fit the needs of the majority
  160. echo of Personal NetWare users.  The update files installed by this batch
  161. echo process were extracted from the general Novell Client for MS Windows
  162. echo files, WINDR2.EXE and NWDLL2.EXE.  If files are needed that are not 
  163. echo included with this update, download the original files.
  164. echo.
  165. pause
  166. echo.
  167. echo Novell provides free "self help" FAXBACK technical information 
  168. echo documents for Personal NetWare.  Call 800-768-9771 and select 
  169. echo option 3.  First, have the Personal NetWare Master Catalog faxed
  170. echo to you, then call back to order specific documents...OR...All of
  171. echo these technical information documents are kept in one file
  172. echo (PNWTID.EXE, text format) in the on-line services.
  173. echo PNWTID.EXE is updated periodically.
  174. echo.
  175. echo Other patch files are available which address specific issues and
  176. echo are only available on the Novell DeskTop BBS at 801-221-5197.
  177. echo Select Files and then Personal NetWare.
  178. echo ******************************************************************
  179. :END
  180. SET WINDIR=
  181.