@if "%debug%"=="" echo off rem rem NwDsk (c) Erwin Veermans rem http://www.veder.com/nwdsk/ rem rem Fd32rdp.bat is used to create Fd32rdp.img (or SFX Fd32rdp.exe) rem (16/32 Packet Driver and Dosrdp) rem rem When you would like to create Fd32rdp.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 Fd32rdp rem Make default FreeDos NwDsk call nwdsk.bat Fd32rdp dos\freedos /00 %nwarc% if errorlevel 1 goto _end rem Adjust default NwDsk :_adjust rem Emm386 in Config.sys rem goto _skpemm bin\xcopy.exe dos\freedos\old\emm386.exe Fd32rdp\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\qhimem.sys Fd32rdp\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\config.sys Fd32rdp\. /I /H /N /Y :_skpemm rem Add all Odi32-drivers bin\xcopy.exe cabs\odi32\*.* Fd32rdp\lib\odi32\. /E /I /H /N /Y rem Remove the Token-Ring / FDDI drivers bin\deltree.com /y Fd32rdp\lib\odi32\cmdgodi.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\octok162.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\ibmtrpo.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\3c3x9.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\tlnkpodi.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\skfpnw.%nwext% rem Remove the big drivers bin\deltree.com /y Fd32rdp\lib\odi32\3c986.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\3c99x.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\3c2000.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\sk98nw.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\m32a.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\m16aodi.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\cbe.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\ce3odi.%nwext% bin\deltree.com /y Fd32rdp\lib\odi32\de22x.%nwext% rem Add some Odi16-drivers bin\deltree.com /y Fd32rdp\lib\odi16\*.* bin\xcopy.exe cabs\odi16\dc21x4.%nwext% Fd32rdp\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\fem556od.%nwext% Fd32rdp\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\3c574.%nwext% Fd32rdp\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\elpc575.%nwext% Fd32rdp\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\e3000odi.%nwext% Fd32rdp\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\3c589.%nwext% Fd32rdp\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\e100bodi.%nwext% Fd32rdp\lib\odi16\. /I /H /N /Y rem Remove \Level0\ bin\deltree.com /y Fd32rdp\level0\lfn.%nwext% bin\deltree.com /y Fd32rdp\level1\lfn.%nwext% bin\deltree.com /y Fd32rdp\level0\freedos.%nwext% bin\deltree.com /y Fd32rdp\level1\freedos.%nwext% bin\deltree.com /y Fd32rdp\level0\ntfs.%nwext% bin\deltree.com /y Fd32rdp\level1\ntfs.%nwext% rem Add Cbcombo to \level1\ if exist cabs\cbcombo.%nwext% bin\xcopy.exe cabs\cbcombo.%nwext% Fd32rdp\level1\. /I /H /N /Y rem Add G2.EXE if exist bin\g2.exe bin\xcopy.exe bin\g2.exe Fd32rdp\bin\. /I /H /N /Y rem Add LPPRD bin\xcopy.exe cabs\lpprd.%nwext% Fd32rdp\level0\. /I /H /N /Y rem Add Dosrdp bin\xcopy.exe cabs\dosrdp.%nwext% Fd32rdp\level0\. /I /H /N /Y rem Remove IPX, TCPIP, Token Ring and FDDI bin\deltree.com /y Fd32rdp\lib\nw32pktt.%nwext% bin\deltree.com /y Fd32rdp\lib\nw32pktf.%nwext% bin\deltree.com /y Fd32rdp\lib\nw3232t.%nwext% bin\deltree.com /y Fd32rdp\lib\nw3232f.%nwext% bin\deltree.com /y Fd32rdp\lib\nwtcp32.%nwext% bin\deltree.com /y Fd32rdp\lib\nwslp32.%nwext% bin\deltree.com /y Fd32rdp\lib\nw32clnt.%nwext% bin\deltree.com /y Fd32rdp\lib\nwipx32.%nwext% bin\deltree.com /y Fd32rdp\lib\tinyhost.%nwext% rem Add Profiles and Global.set if exist bin\Fd32rc\*.* bin\xcopy.exe bin\Fd32rc\*.* Fd32rdp\etc\. /E /I /H /N /Y bin\deltree.com /y Fd32rdp\etc\profile\dos-vnc.* rem Write Diskid.txt if not exist Fd32rdp.cmt goto _nodiskid type bin\diskid.1 > fd32rdp\diskid.txt type Fd32rdp.cmt >> fd32rdp\diskid.txt type bin\diskid.2 >> fd32rdp\diskid.txt :_nodiskid rem Sqeeze Nics :_sqeeze if not exist Cabs\Pcidevs.%nwext% call Nwdsk.bat Fd32rdp /!! %nwarc% if errorlevel 1 goto _end rem Build a diskette image from this dir :_bfi if exist Fd32rdp.img del Fd32rdp.img > nul if exist Fd32rdp.imz del Fd32rdp.imz > nul if exist Fd32rdp.exe del Fd32rdp.exe > nul bin\bfi.exe -t=%flopsz% -f=Fd32rdp.img -b=bin\freedos.144 -l=NwDsk340fds Fd32rdp :_end set flopsz= set nwarc= set nwext=