home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Best of Windows 95.com 1996 December
/
WIN95_DEC_1996_4.ISO
/
patches
/
nu95ptch.exe
/
RUNME.BAT
< prev
Wrap
DOS Batch File
|
1996-02-01
|
2KB
|
67 lines
@echo off
if not x%windir%x==xx GOTO NODOSBOX
if x%1x == xx goto NOCMDLINE
if x%2x == xx SET SHARED=%1
if not x%2x == xx SET SHARED=%2
if not exist %1\nul GOTO NOCMDLINE
if not exist %SHARED%\nul GOTO NOCMDLINE
SET PRESULT=Y
if not exist %1\nu95upd\nul MD %1\nu95upd
if not exist %1\nu95upd\upgrade.dat echo NU Patch > %1\nu95upd\upgrade.dat
echo Y | del %1\nu95upd\*.* >nul
copy nu95.exe %1\nu95upd >NUL
%1
cd \nu95upd
nu95 >NUL
%comspec% /e:3072 /c update %1 %SHARED%
if exist %1\nu95upd\error.dat SET PRESULT=N
%1
cd \
echo Y | del %1\nu95upd\*.* >nul
if %PRESULT%==N goto PATCHERR
echo Before being patched, the appropriate files have been backed up
echo into %1\NU95UPD\BACKUP. You may delete those files and that folder
echo later at your convenience.
echo .
echo If you wish to undo the patch, run UNPATCH.BAT in %1\NU95UPD\BACKUP.
echo .
echo Please read the README.UPD file for more information about this patch.
echo .
echo WARNING: YOU MUST NOW RE-BOOT YOUR COMPUTER. Press Ctrl-Alt-Delete.
goto END
:NODOSBOX
echo Please restart Windows in MS-DOS mode by selecting "Start", "Shut Down",
echo "Restart the Computer in MS-DOS mode". Change to the directory containing
echo the patch files and type RUNME C: D:, where C: is the drive where the NU
echo files are stored and D: is the drive where Windows 95 is installed. If
echo NU95 and Windows 95 are on the same drive, you may simply type RUNME C: .
goto END
:NOCMDLINE
echo Please specify the drive where NU95 has been installed, like this
echo RUNME C:
echo If you have installed NU95 on a different drive from Windows 95,
echo please specify first the NU95 drive letter, then the Win95 drive
echo letter like this,
echo RUNME C: D:
echo where C: is the NU95 drive and D: is the Win95 drive. If both NU95
echo and Win95 are on the same drive, you need only specify the drive once.
echo .
goto END
:PATCHERR
echo The Patch program encounted an error. Correct and rerun RUNME.BAT.
goto END
:END
SET PRESULT=