@echo off
if "%2"=="" goto ERROR
if not exist %2\rplsvc.mdb goto ERROR
if not exist %1\bblock\netbeui\epro\dosbb.cnf goto ERROR
:MESSAGE
echo IMPORTANT: Make a backup of the RPL Database (RPLSVC.MDB and JET.LOG)
echo before you attempt this update.
echo �
echo This script will update your NETWKSTA.* files and add support for
echo these network adapters:
echo Intel EtherExpress PRO
echo Madge Smart 16/4 Ringnode (token-ring)
echo to an existing NT 3.5 RPL installation. If you are installing
echo the remoteboot service for the first time with NT 3.51, you do not
echo need to run this script; you already have the new NETWKSTA.* files
echo and support for the new network adapters.
echo �
echo The remoteboot service must already be installed and running
echo in order for this update to work correctly.
echo �
echo If you have any doubts press CTRL-C NOW.
pause
:START
xcopy %1\rplfiles\binfiles\lanman.dos\netwksta\netwksta.* %2\rplfiles\binfiles\
lanman.dos\netwksta
rplcmd %3 < %1\update\epro.rpl
mkdir %2\bblock\netbeui\epro
if not errorlevel 0 goto COPYERROR
xcopy /E %1\bblock\netbeui\epro %2\bblock\netbeui\epro
if not errorlevel 0 goto COPYERROR
copy %1\bblock\ndis\epro.dos %2\bblock\ndis\epro.dos
if not errorlevel 0 goto COPYERROR
copy %1\rplfiles\binfiles\lanman.dos\drivers\nif\epro.nif %2\rplfiles\
binfiles\lanman.dos\drivers\nif
if not errorlevel 0 goto COPYERROR
rplcmd %3 < %1\update\madge.rpl
mkdir %2\bblock\netbeui\madge
if not errorlevel 0 goto COPYERROR
xcopy /E %1\bblock\netbeui\madge %2\bblock\netbeui\madge
if not errorlevel 0 goto COPYERROR
copy %1\bblock\ndis\smartnd.dos %2\bblock\ndis\smartnd.dos
if not errorlevel 0 goto COPYERROR
copy %1\rplfiles\binfiles\lanman.dos\drivers\nif\madge.nif %2\rplfiles\
binfiles\lanman.dos\drivers\nif
if not errorlevel 0 goto COPYERROR
rplcmd %3 < %1\update\elnkii.rpl
rplcmd %3 < %1\update\ne200cpt.rpl
echo �
echo Update complete!
goto END
:ERROR
echo �
echo Syntax for RPLUPD:
echo �
echo RPLUPD [New RPL] [Current RPL] [RPL Server]
echo �
echo [New RPL] = The RPL Root Directory on the installation CD
echo (e.g. e:\clients\rpl)
echo [Current RPL] = The RPL Root Directory on the server (e.g. c:\winnt\rpl)
echo [RPL Server] = (optional) Name of RPL Server (e.g. \\RPLSRV)
echo �
echo Example: RPLUPD e:\clients\rpl c:\winnt\rpl \\RPLSRV
goto END
:COPYERROR
echo An error occurred copying files.
goto END
:END