home *** CD-ROM | disk | FTP | other *** search
/ The Best of Windows 95.com 1996 September / WIN95_09964.iso / patches / nu95ptch.exe / RUNME.BAT < prev   
DOS Batch File  |  1996-02-01  |  2KB  |  67 lines

  1. @echo off
  2. if not x%windir%x==xx GOTO NODOSBOX
  3. if x%1x == xx goto NOCMDLINE
  4. if x%2x == xx SET SHARED=%1
  5. if not x%2x == xx SET SHARED=%2
  6. if not exist %1\nul GOTO NOCMDLINE
  7. if not exist %SHARED%\nul GOTO NOCMDLINE
  8.  
  9.  
  10. SET PRESULT=Y
  11.  
  12. if not exist %1\nu95upd\nul MD %1\nu95upd
  13. if not exist %1\nu95upd\upgrade.dat echo NU Patch > %1\nu95upd\upgrade.dat
  14. echo Y | del %1\nu95upd\*.* >nul
  15. copy nu95.exe %1\nu95upd  >NUL
  16. %1
  17. cd \nu95upd
  18. nu95  >NUL
  19. %comspec% /e:3072 /c update %1 %SHARED%
  20. if exist %1\nu95upd\error.dat SET PRESULT=N
  21. %1
  22. cd \
  23. echo Y | del %1\nu95upd\*.* >nul
  24. if %PRESULT%==N goto PATCHERR
  25. echo Before being patched, the appropriate files have been backed up
  26. echo into %1\NU95UPD\BACKUP.  You may delete those files and that folder
  27. echo later at your convenience.
  28. echo .
  29. echo If you wish to undo the patch, run UNPATCH.BAT in %1\NU95UPD\BACKUP.
  30. echo .
  31. echo Please read the README.UPD file for more information about this patch.
  32. echo .
  33. echo WARNING: YOU MUST NOW RE-BOOT YOUR COMPUTER.  Press Ctrl-Alt-Delete.
  34. goto END
  35.  
  36. :NODOSBOX
  37. echo Please restart Windows in MS-DOS mode by selecting "Start", "Shut Down",
  38. echo "Restart the Computer in MS-DOS mode". Change to the directory containing
  39. echo the patch files and type RUNME C: D:, where C: is the drive where the NU
  40. echo files are stored and D: is the drive where Windows 95 is installed.  If
  41. echo NU95 and Windows 95 are on the same drive, you may simply type RUNME C: .
  42.  
  43. goto END
  44.  
  45.  
  46. :NOCMDLINE
  47. echo Please specify the drive where NU95 has been installed, like this
  48. echo             RUNME  C:
  49. echo If you have installed NU95 on a different drive from Windows 95,
  50. echo please specify first the NU95 drive letter, then the Win95 drive
  51. echo letter like this,
  52. echo             RUNME  C:  D:
  53. echo where C: is the NU95 drive and D: is the Win95 drive.  If both NU95
  54. echo and Win95 are on the same drive, you need only specify the drive once.
  55. echo .
  56. goto END
  57.  
  58. :PATCHERR
  59. echo The Patch program encounted an error. Correct and rerun RUNME.BAT.
  60. goto END
  61.  
  62.  
  63. :END
  64.  
  65. SET PRESULT=
  66.  
  67.