@if "%debug%"=="" echo off rem rem NwDsk (c) Erwin Veermans rem http://www.veder.com/nwdsk/ rem rem Fdnwd288.bat is used to create Fdnwd288.img rem (Full 32bit Client with all extras on 288 floppy image) rem rem When you would like to create Fdnwd288.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=7 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 Fdnwd288 rem Make default FreeDos NwDsk call nwdsk.bat Fdnwd288 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 Fdnwd288\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\qhimem.sys Fdnwd288\bin\. /I /H /N /Y bin\xcopy.exe dos\freedos\old\config.sys Fdnwd288\. /I /H /N /Y :_skpemm rem Autoset bin\inifile.com Fdnwd288\etc\autoset.bat []set ramsz=16384 rem Add all Odi32-drivers bin\xcopy.exe cabs\odi32\*.%nwext% Fdnwd288\lib\odi32\. /E /I /H /N /Y rem Add all Odi16-drivers bin\xcopy.exe cabs\odi16\*.%nwext% Fdnwd288\lib\odi16\. /E /I /H /N /Y rem Add Sroute for Token-Ring and FDDI bin\xcopy.exe cabs\sroute.%nwext% Fdnwd288\lib\. /I /H /N /Y rem Add IP Print Server PPRD to \level0\ bin\xcopy.exe cabs\lpprd.%nwext% Fdnwd288\level0\. /I /H /N /Y rem Add BootUtil to \level0\ if exist cabs\bootutil.%nwext% bin\xcopy.exe cabs\bootutil.%nwext% Fdnwd288\level0\. /I /H /N /Y rem if exist bin\format.exe bin\xcopy.exe bin\format.exe Fdnwd288\bin\. /I /H /N /Y rem Add VNC rem if exist cabs\vnc.%nwext% bin\xcopy.exe cabs\vnc.%nwext% Fdnwd288\level0\. /I /H /N /Y rem Add Ltools if exist cabs\ltools.%nwext% bin\xcopy.exe cabs\ltools.%nwext% Fdnwd288\level0\. /I /H /N /Y rem Add Partman if exist cabs\partman.%nwext% bin\xcopy.exe cabs\partman.%nwext% Fdnwd288\level0\. /I /H /N /Y rem Add Cbcombo to \level1\ if exist cabs\cbcombo.%nwext% bin\xcopy.exe cabs\cbcombo.%nwext% Fdnwd288\level1\. /I /H /N /Y rem Add Profiles and Global.set bin\xcopy.exe bin\Fdnwd288\*.* Fdnwd288\etc\. /E /I /H /N /Y bin\xcopy.exe bin\kbfl.com Fdnwd288\bin\. /I /H /N /Y bin\inifile.com Fdnwd288\etc\global.set []P_NONICBLD=1 rem Jump goto _dropnics if exist Cabs\Pcidevs.%nwext% goto _dropnics rem Sqeeze Nics :_sqeeze call Nwdsk.bat Fdnwd288 /!! %nwarc% if errorlevel 1 goto _end rem Update Nics :_nicup bin\xcopy.exe Fdnwd288\lib\odi16\*.* cabs\odi16\. /E /I /H /N /Y bin\xcopy.exe Fdnwd288\lib\odi32\*.* cabs\odi32\. /E /I /H /N /Y rem Drop Nics and recopy selected ones :_dropnics bin\deltree.com /y Fdnwd288\lib\odi16\*.* bin\xcopy.exe cabs\odi16\dc21x4.%nwext% Fdnwd288\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\fem556od.%nwext% Fdnwd288\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\3c574.%nwext% Fdnwd288\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\elpc575.%nwext% Fdnwd288\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\e3000odi.%nwext% Fdnwd288\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\3c589.%nwext% Fdnwd288\lib\odi16\. /I /H /N /Y bin\xcopy.exe cabs\odi16\e100bodi.%nwext% Fdnwd288\lib\odi16\. /I /H /N /Y if not exist Cabs\Pcidevs.%nwext% if exist ..\..\Pcidevs.cab bin\xcopy.exe ..\..\Pcidevs.cab Cabs\. /I /H /N /Y rem Write Diskid.txt if not exist Fdnwd288.cmt goto _nodiskid type bin\diskid.1 > Fdnwd288\diskid.txt type Fdnwd288.cmt >> Fdnwd288\diskid.txt type bin\diskid.2 >> Fdnwd288\diskid.txt :_nodiskid rem Build a diskette image from this dir :_bfi if exist Fdnwd288.img del Fdnwd288.img > nul if exist Fdnwd288.imz del Fdnwd288.imz > nul if exist Fdnwd288.exe del Fdnwd288.exe > nul bin\bfi.exe -t=%flopsz% -f=Fdnwd288.img -b=bin\freedos.144 -l=NwDsk340fds Fdnwd288 :_end set flopsz= set nwarc= set nwext=