@if "%debug%"=="" echo off rem rem NwDsk (c) Erwin Veermans rem http://www.veder.com/nwdsk/ rem rem D7msrrc.bat is used to create D7msrrc.img (or SFX D7msrrc.exe) rem rem When you would like to create D7msrrc.img yourself rem instead of downloading it, you should run this rem batch file in your NwDsk dir (next to NwDsk.bat). rem rem Check if everything is there if not exist nwdsk.bat goto _end if not exist bin\deltree.com goto _end if not exist bin\sedmod.exe goto _end if not exist bin\bfi.exe goto _end if not exist bin\mkbt.exe goto _end rem Set nwext set flopsz=10 set nwext= if exist cabs\nwlan.zip set nwext=zip if exist cabs\nwlan.uha set nwext=uha if exist cabs\nwlan.lzh set nwext=lzh if exist cabs\nwlan.cab set nwext=cab if "%nwext%"=="" goto _end set nwarc= if "%nwext%"=="zip" set nwarc=/1 if "%nwext%"=="lzh" set nwarc=/2 if "%nwext%"=="uha" set nwarc=/3 if "%1"==":" if not "%2"=="" goto %2 rem Delete target-dir if exist bin\deltree.com bin\deltree /y D7msrrc rem Make default FreeDos NwDsk call nwdsk.bat D7msrrc dos\w98se /00 %nwarc% if errorlevel 1 goto _end rem Adjust default NwDsk :_adjust rem Remove the Odi32-drivers bin\deltree.com /y D7msrrc\lib\odi32 rem Remove the Odi16-drivers bin\deltree.com /y D7msrrc\lib\odi16 rem What1632 from \level0\ bin\deltree.com /y D7msrrc\level0\what1632.%nwext% rem Remove bin\deltree.com /y D7msrrc\level0\lfn.%nwext% bin\deltree.com /y D7msrrc\level1\lfn.%nwext% bin\deltree.com /y D7msrrc\level0\vc.%nwext% bin\deltree.com /y D7msrrc\level1\vc.%nwext% bin\deltree.com /y D7msrrc\level1\cbcombo.%nwext% rem Remove Nwlan bin\deltree.com /y D7msrrc\level3\nwlan.%nwext% rem Add Msnet if exist cabs\msnet.%nwext% bin\xcopy.exe cabs\msnet.%nwext% D7msrrc\level3\. /I /H /N /Y rem Add Rrc if exist cabs\rrc.%nwext% bin\xcopy.exe cabs\rrc.%nwext% D7msrrc\level0\. /I /H /N /Y rem Remove NetWare 32 bit client bin\deltree.com /y D7msrrc\lib\nw32pkt.%nwext% bin\deltree.com /y D7msrrc\lib\nw32pkte.%nwext% bin\deltree.com /y D7msrrc\lib\nw32pktt.%nwext% bin\deltree.com /y D7msrrc\lib\nw32pktf.%nwext% bin\deltree.com /y D7msrrc\lib\nw3232t.%nwext% bin\deltree.com /y D7msrrc\lib\nw3232f.%nwext% bin\deltree.com /y D7msrrc\lib\nw3232e.%nwext% bin\deltree.com /y D7msrrc\lib\nw3232.%nwext% bin\deltree.com /y D7msrrc\lib\nw1632.%nwext% bin\deltree.com /y D7msrrc\lib\nw1616.%nwext% bin\deltree.com /y D7msrrc\lib\nwipx32.%nwext% bin\deltree.com /y D7msrrc\lib\nwtcp32.%nwext% bin\deltree.com /y D7msrrc\lib\nwodi32.%nwext% bin\deltree.com /y D7msrrc\lib\nw32clnt.%nwext% bin\deltree.com /y D7msrrc\lib\nwslp32.%nwext% bin\deltree.com /y D7msrrc\lib\nwpkt.%nwext% bin\deltree.com /y D7msrrc\lib\tinyhost.%nwext% rem Add MsClient if exist cabs\msclient.%nwext% bin\xcopy.exe cabs\msclient.%nwext% D7msrrc\lib\. /I /H /N /Y if exist cabs\mstcp.%nwext% bin\xcopy.exe cabs\mstcp.%nwext% D7msrrc\lib\. /I /H /N /Y if exist cabs\msnwlink.%nwext% bin\xcopy.exe cabs\msnwlink.%nwext% D7msrrc\lib\. /I /H /N /Y rem Add RrcDos if exist bin\rrcdos.exe bin\xcopy.exe bin\rrcdos.exe D7msrrc\bin\. /I /H /N /Y rem if exist cabs\rrcdos2.%nwext% bin\xcopy.exe cabs\rrcdos2.%nwext% D7msrrc\lib\. /I /H /N /Y rem if not exist D7msrrc\lib\rrcdos2.%nwext% if exist cabs\rrcdos1.%nwext% bin\xcopy.exe cabs\rrcdos1.%nwext% D7msrrc\lib\. /I /H /N /Y rem if not exist D7msrrc\lib\rrcdos?.%nwext% if exist cabs\rrcdos.%nwext% bin\xcopy.exe cabs\rrcdos.%nwext% D7msrrc\lib\. /I /H /N /Y rem Remove Umbfill bin\deltree.com /y D7msrrc\bin\umbfill.com bin\deltree.com /y D7msrrc\bin\dummy.sys rem if not exist D7msrrc\bin\ifshlp.sys if exist bin\ifshlp.sys bin\xcopy.exe bin\ifshlp.sys D7msrrc\bin\. /I /H /N /Y if not exist D7msrrc\bin\share.* if exist dos\freedos\share.* bin\xcopy.exe dos\freedos\share.* D7msrrc\bin\. /I /H /N /Y if not exist D7msrrc\bin\rrcdos.exe if exist bin\rrcdos.exe bin\xcopy.exe bin\rrcdos.exe D7msrrc\bin\. /I /H /N /Y if not exist D7msrrc\bin\rrcdos.exe if not exist bin\client.exe if exist bin\client.exe bin\xcopy.exe bin\client.exe D7msrrc\bin\. /I /H /N /Y if not exist D7msrrc\bin\rrcdos.exe if not exist bin\password.bin if exist bin\password.bin bin\xcopy.exe bin\password.bin D7msrrc\bin\. /I /H /N /Y rem Add Profiles and Global.set bin\xcopy.exe bin\Fdmsrrc\*.* D7msrrc\etc\. /E /I /H /N /Y bin\deltree.com /y D7msrrc\etc\_nwlan16.pci bin\deltree.com /y D7msrrc\etc\_nwlan32.pci bin\inifile.com D7msrrc\etc\global.set []CDROM_LD=2 rem Add Ndis if not exist D7msrrc\lib\Ndis md D7msrrc\lib\Ndis if exist Cabs\Ndis\*.* bin\xcopy.exe Cabs\Ndis D7msrrc\Lib\Ndis\. /I /H /N /Y rem if exist Cabs\Ndis\Extra1\*.* bin\xcopy.exe Cabs\Ndis\Extra1\*.* D7msrrc\Lib\Ndis\. /I /H /N /Y rem Add UDMA rem goto _nudma if not exist dos\freedos\?dma*.sys goto _nudma bin\xcopy.exe dos\freedos\?dma*.sys D7msrrc\bin\. /I /H /N /Y cd D7msrrc for %%i in (bin\?dma*.sys) do ..\bin\inifile.com Config.sys [MAX]devicehigh=\%%i /l cd .. bin\sedmod.exe -i -e "s/devicehigh/device/" D7msrrc\Config.sys >config.tmp type config.tmp > D7msrrc\Config.sys del config.tmp >nul :_nudma rem Write Diskid.txt if not exist D7msrrc.cmt goto _nodiskid type bin\diskid.1 > D7msrrc\diskid.txt type D7msrrc.cmt >> D7msrrc\diskid.txt type bin\diskid.2 >> D7msrrc\diskid.txt :_nodiskid rem Optimize :_opti if exist Fdmsrrc_bat. goto _bfi call Nwdsk.bat D7msrrc /! %nwarc% if errorlevel 1 goto _end rem Update Nics :_nicup bin\xcopy.exe D7msrrc\lib\ndis\*.* cabs\ndis\. /E /I /H /N /Y rem Build a diskette image from this dir :_bfi if exist D7msrrc.img del D7msrrc.img > nul if exist D7msrrc.imz del D7msrrc.imz > nul if exist D7msrrc.exe del D7msrrc.exe > nul bin\bfi.exe -t=%flopsz% -f=D7msrrc.img -b=bin\w98se.144 -l=NwDsk340ms7 D7msrrc :_end set flopsz= set nwarc= set nwext=