@if "%debug%"=="" echo off rem rem NwDsk (c) Erwin Veermans rem http://www.veder.com/nwdsk/ rem rem Fd16.bat is used to create Fd16.img (or SFX Fd16.exe) rem (16 bit client, all ODI16 drivers, all utilities) rem rem When you would like to create Fd16.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=6 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 Fd16 rem Make default FreeDos NwDsk call nwdsk.bat Fd16 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 Fd16\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\qhimem.sys Fd16\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\config.sys Fd16\. /I /H /N /Y :_skpemm rem Add all Odi16-drivers bin\xcopy.exe cabs\odi16\*.* Fd16\lib\odi16\. /E /I /H /N /Y rem Remove the Odi32-drivers bin\deltree.com /y Fd16\lib\odi32 rem Add IP Print Server PPRD to \level0\ bin\xcopy.exe cabs\lpprd.%nwext% Fd16\level0\. /I /H /N /Y rem Remove \Level1\ bin\deltree.com /y Fd16\level0\ntfs.%nwext% bin\deltree.com /y Fd16\level1\ntfs.%nwext% rem bin\deltree.com /y Fd16\level0\freedos.%nwext% rem bin\deltree.com /y Fd16\level1\freedos.%nwext% bin\deltree.com /y Fd16\level0\lfn.%nwext% bin\deltree.com /y Fd16\level1\lfn.%nwext% bin\deltree.com /y Fd16\level0\aspiusb.%nwext% bin\deltree.com /y Fd16\level1\aspiusb.%nwext% bin\deltree.com /y Fd16\level0\vc.%nwext% bin\deltree.com /y Fd16\level1\vc.%nwext% rem Add Cbcombo to \level1\ if exist cabs\cbcombo.%nwext% bin\xcopy.exe cabs\cbcombo.%nwext% Fd16\level1\. /I /H /N /Y rem Remove NetWare 32 bit client bin\deltree.com /y Fd16\lib\nw32pkt.%nwext% bin\deltree.com /y Fd16\lib\nw32pkte.%nwext% bin\deltree.com /y Fd16\lib\nw32pktt.%nwext% bin\deltree.com /y Fd16\lib\nw32pktf.%nwext% bin\deltree.com /y Fd16\lib\nw3232t.%nwext% bin\deltree.com /y Fd16\lib\nw3232f.%nwext% bin\deltree.com /y Fd16\lib\nw3232e.%nwext% bin\deltree.com /y Fd16\lib\nw3232.%nwext% bin\deltree.com /y Fd16\lib\nw1632.%nwext% bin\deltree.com /y Fd16\lib\nwipx32.%nwext% bin\deltree.com /y Fd16\lib\nwtcp32.%nwext% bin\deltree.com /y Fd16\lib\nwslp32.%nwext% bin\deltree.com /y Fd16\lib\nwodi32.%nwext% bin\deltree.com /y Fd16\lib\nw32clnt.%nwext% bin\deltree.com /y Fd16\lib\tinyhost.%nwext% rem Add NetWare 16 bit client bin\xcopy.exe cabs\nwodi16.%nwext% Fd16\lib\. /I /H /N /Y bin\xcopy.exe cabs\nwipx16.%nwext% Fd16\lib\. /I /H /N /Y bin\xcopy.exe cabs\nw1616.%nwext% Fd16\lib\. /I /H /N /Y rem Remove Umbfill bin\deltree.com /y Fd16\bin\umbfill.com bin\deltree.com /y Fd16\bin\dummy.sys rem Add _nwlan.16 if exist bin\Fd16rc\_nwlan16.pci bin\xcopy.exe bin\Fd16rc\_nwlan16.pci Fd16\etc\. /I /H /N /Y bin\deltree.com /y Fd16\etc\_nwlan32.pci rem Write Diskid.txt if not exist Fd16vnc.cmt goto _nodiskid type bin\diskid.1 > Fd16\diskid.txt type Fd16.cmt >> Fd16\diskid.txt type bin\diskid.2 >> Fd16\diskid.txt :_nodiskid rem Sqeeze Nics :_sqeeze if not exist Cabs\Pcidevs.%nwext% call Nwdsk.bat Fd16 /!! %nwarc% if errorlevel 1 goto _end rem Build a diskette image from this dir :_bfi if exist Fd16.img del Fd16.img > nul if exist Fd16.imz del Fd16.imz > nul if exist Fd16.exe del Fd16.exe > nul bin\bfi.exe -t=%flopsz% -f=Fd16.img -b=bin\freedos.144 -l=NwDsk340fds Fd16 :_end set flopsz= set nwarc= set nwext=