Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
0% found this document useful (0 votes)
2 views2 pages

WIN95SRV

Download as txt, pdf, or txt
Download as txt, pdf, or txt
Download as txt, pdf, or txt
You are on page 1/ 2

@echo OFF

if "%1"=="" goto USAGE


if not exist %1\MSBATCH.INF goto NOMSBATCH
if not exist .\win95srv\msbatch.inf goto NOTHOMEDIR
if not exist .\win95srv\suwin.exe goto NOTHOMEDIR
if not exist .\win95srv\netdi.dll goto NOTHOMEDIR
echo Updating Windows 95 files on %1 ...
attrib -s -h -r %1\msbatch.inf
if exist %1\netdi.dll attrib -s -h -r %1\netdi.dll
if exist %1\suwin.exe attrib -s -h -r %1\suwin.exe
attrib -s -h -r %1\suwin\netdi.dll
attrib -s -h -r %1\suwin\suwin.exe
attrib -s -h -r %1\system\netdi.dll
if exist %1\msbatch.old goto SKIP1
rename %1\msbatch.inf msbatch.old
attrib +r %1\msbatch.old
:SKIP1
if exist %1\netdi.old goto SKIP2
if not exist %1\netdi.dll goto SKIP2
rename %1\netdi.dll netdi.old
attrib +r %1\netdi.old
:SKIP2
if exist %1\suwin\netdi.old goto SKIP3
rename %1\suwin\netdi.dll netdi.old
attrib +r %1\suwin\netdi.old
:SKIP3
if exist %1\suwin\suwin.old goto SKIP4
rename %1\suwin\suwin.exe suwin.old
attrib +r %1\suwin\suwin.old
:SKIP4
if exist %1\system\netdi.old goto SKIP5
rename %1\system\netdi.dll netdi.old
attrib +r %1\system\netdi.old
:SKIP5
xcopy win95srv\msbatch.inf %1
if not errorlevel 0 goto COPYERROR
xcopy win95srv\netdi.dll %1
if not errorlevel 0 goto COPYERROR
xcopy win95srv\suwin.exe %1
if not errorlevel 0 goto COPYERROR
xcopy win95srv\netdi.dll %1\suwin
if not errorlevel 0 goto COPYERROR
xcopy win95srv\suwin.exe %1\suwin
if not errorlevel 0 goto COPYERROR
xcopy win95srv\netdi.dll %1\system
if not errorlevel 0 goto COPYERROR
attrib +r %1\msbatch.inf
attrib +r %1\netdi.dll
attrib +r %1\suwin\netdi.dll
attrib +r %1\suwin\suwin.exe
attrib +r %1\system\netdi.dll
echo The update of the server with the Windows 95 tree is complete.
goto end
:COPYERROR
echo An error occurred copying files.
goto END
:NOMSBATCH
echo The file %1\MSBATCH.INF could not be found.
echo Check that the Windows 95 network setup tree %1 is correct.
goto USAGE
:NOTHOMEDIR
echo Run this batch script from the RPL\UPDATE\WIN95 directory.
goto END
:USAGE
echo �
echo Syntax for WIN95SRV:
echo �
echo WIN95SRV [dest]
echo �
echo [dest] = directory where Windows 95 network setup tree is installed
echo �
echo Example: WIN95SRV g:\win95
goto END
:END

You might also like