@if "%debug%"=="" echo off rem rem NwDsk (c) Erwin Veermans rem http://www.veder.com/nwdsk/ rem rem Fdmsrrc.bat is used to create Fdmsrrc.img (or SFX Fdmsrrc.exe) rem rem When you would like to create Fdmsrrc.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 Fdmsrrc rem Make default FreeDos NwDsk call nwdsk.bat Fdmsrrc dos\freedos /00 %nwarc% if errorlevel 1 goto _end rem Adjust default NwDsk :_adjust rem Emm386 in Config.sys rem goto _skepmm bin\xcopy.exe dos\freedos\old\emm386.exe Fdmsrrc\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\qhimem.sys Fdmsrrc\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\config.sys Fdmsrrc\. /I /H /N /Y :_skpemm rem Remove the Odi32-drivers bin\deltree.com /y Fdmsrrc\lib\odi32 rem Remove the Odi16-drivers bin\deltree.com /y Fdmsrrc\lib\odi16 rem What1632 from \level0\ bin\deltree.com /y Fdmsrrc\level0\what1632.%nwext% rem Add BootUtil to \level0\ rem if exist cabs\bootutil.%nwext% bin\xcopy.exe cabs\bootutil.%nwext% Fdmsrrc\level0\. /I /H /N /Y rem Add IP Print Server PPRD to \level0\ bin\xcopy.exe cabs\lpprd.%nwext% Fdmsrrc\level0\. /I /H /N /Y rem Remove bin\deltree.com /y Fdmsrrc\level0\lfn.%nwext% bin\deltree.com /y Fdmsrrc\level1\lfn.%nwext% rem bin\deltree.com /y Fdmsrrc\level0\ntfs.%nwext% rem bin\deltree.com /y Fdmsrrc\level1\ntfs.%nwext% rem bin\deltree.com /y Fdmsrrc\level0\freedos.%nwext% rem bin\deltree.com /y Fdmsrrc\level1\freedos.%nwext% bin\deltree.com /y Fdmsrrc\level0\vc.%nwext% bin\deltree.com /y Fdmsrrc\level1\vc.%nwext% bin\deltree.com /y Fdmsrrc\level1\cbcombo.%nwext% rem Remove Nwlan bin\deltree.com /y Fdmsrrc\level3\nwlan.%nwext% rem Add Msnet if exist cabs\msnet.%nwext% bin\xcopy.exe cabs\msnet.%nwext% Fdmsrrc\level3\. /I /H /N /Y rem Add Rrc if exist cabs\rrc.%nwext% bin\xcopy.exe cabs\rrc.%nwext% Fdmsrrc\level0\. /I /H /N /Y rem Remove NetWare 32 bit client bin\deltree.com /y Fdmsrrc\lib\nw32pkt.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw32pkte.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw32pktt.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw32pktf.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw3232t.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw3232f.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw3232e.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw3232.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw1632.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw1616.%nwext% bin\deltree.com /y Fdmsrrc\lib\nwipx32.%nwext% bin\deltree.com /y Fdmsrrc\lib\nwtcp32.%nwext% bin\deltree.com /y Fdmsrrc\lib\nwodi32.%nwext% bin\deltree.com /y Fdmsrrc\lib\nw32clnt.%nwext% bin\deltree.com /y Fdmsrrc\lib\nwslp32.%nwext% bin\deltree.com /y Fdmsrrc\lib\nwpkt.%nwext% bin\deltree.com /y Fdmsrrc\lib\tinyhost.%nwext% rem Add MsClient if exist cabs\msclient.%nwext% bin\xcopy.exe cabs\msclient.%nwext% Fdmsrrc\lib\. /I /H /N /Y if exist cabs\mstcp.%nwext% bin\xcopy.exe cabs\mstcp.%nwext% Fdmsrrc\lib\. /I /H /N /Y if exist cabs\msnwlink.%nwext% bin\xcopy.exe cabs\msnwlink.%nwext% Fdmsrrc\lib\. /I /H /N /Y rem Add RrcDos if exist bin\rrcdos.exe bin\xcopy.exe bin\rrcdos.exe Fdmsrrc\bin\. /I /H /N /Y rem if exist cabs\rrcdos2.%nwext% bin\xcopy.exe cabs\rrcdos2.%nwext% Fdmsrrc\lib\. /I /H /N /Y rem if not exist Fdmsrrc\lib\rrcdos2.%nwext% if exist cabs\rrcdos1.%nwext% bin\xcopy.exe cabs\rrcdos1.%nwext% Fdmsrrc\lib\. /I /H /N /Y rem if not exist Fdmsrrc\lib\rrcdos?.%nwext% if exist cabs\rrcdos.%nwext% bin\xcopy.exe cabs\rrcdos.%nwext% Fdmsrrc\lib\. /I /H /N /Y rem Remove Umbfill bin\deltree.com /y Fdmsrrc\bin\umbfill.com bin\deltree.com /y Fdmsrrc\bin\dummy.sys rem if not exist Fdmsrrc\bin\ifshlp.sys if exist bin\ifshlp.sys bin\xcopy.exe bin\ifshlp.sys Fdmsrrc\bin\. /I /H /N /Y if not exist Fdmsrrc\bin\share.* if exist dos\freedos\share.* bin\xcopy.exe dos\freedos\share.* Fdmsrrc\bin\. /I /H /N /Y if not exist Fdmsrrc\bin\rrcdos.exe if exist bin\rrcdos.exe bin\xcopy.exe bin\rrcdos.exe Fdmsrrc\bin\. /I /H /N /Y if not exist Fdmsrrc\bin\rrcdos.exe if not exist bin\client.exe if exist bin\client.exe bin\xcopy.exe bin\client.exe Fdmsrrc\bin\. /I /H /N /Y if not exist Fdmsrrc\bin\rrcdos.exe if not exist bin\password.bin if exist bin\password.bin bin\xcopy.exe bin\password.bin Fdmsrrc\bin\. /I /H /N /Y rem Add Profiles and Global.set bin\xcopy.exe bin\Fdmsrrc\*.* Fdmsrrc\etc\. /E /I /H /N /Y bin\deltree.com /y Fdmsrrc\etc\_nwlan16.pci bin\deltree.com /y Fdmsrrc\etc\_nwlan32.pci rem Add Ndis if not exist Fdmsrrc\lib\Ndis md Fdmsrrc\lib\Ndis if exist Cabs\Ndis\*.* bin\xcopy.exe Cabs\Ndis Fdmsrrc\Lib\Ndis\. /I /H /N /Y rem if exist Cabs\Ndis\Extra1\*.* bin\xcopy.exe Cabs\Ndis\Extra1\*.* Fdmsrrc\Lib\Ndis\. /I /H /N /Y rem Write Diskid.txt if not exist Fdmsrrc.cmt goto _nodiskid type bin\diskid.1 > Fdmsrrc\diskid.txt type Fdmsrrc.cmt >> Fdmsrrc\diskid.txt type bin\diskid.2 >> Fdmsrrc\diskid.txt :_nodiskid rem Optimize :_opti if exist Fdmsrrc_bat. goto _bfi call Nwdsk.bat Fdmsrrc /! %nwarc% if errorlevel 1 goto _end rem Update Nics :_nicup bin\xcopy.exe Fdmsrrc\lib\ndis\*.* cabs\ndis\. /E /I /H /N /Y rem Build a diskette image from this dir :_bfi if exist Fdmsrrc.img del Fdmsrrc.img > nul if exist Fdmsrrc.imz del Fdmsrrc.imz > nul if exist Fdmsrrc.exe del Fdmsrrc.exe > nul bin\bfi.exe -t=%flopsz% -f=Fdmsrrc.img -b=bin\freedos.144 -l=NwDsk340fds Fdmsrrc :_end set flopsz= set nwarc= set nwext=