@if "%debug%"=="" echo off rem rem NwDsk (c) Erwin Veermans rem http://www.veder.com/nwdsk/ rem rem Drubcd.bat is used to create Drubcd.img (or SFX Drubcd.exe) rem (16 bit client, all ODI16 drivers, all utilities) rem rem When you would like to create Drubcd.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 Drubcd rem Make default OpenDos NwDsk call nwdsk.bat Drubcd dos\opendos /00 %nwarc% if errorlevel 1 goto _end rem Adjust default NwDsk :_adjust rem Faster Menu bin\inifile.com Drubcd\config.sys []timeout=3,Y,1 rem Autoset bin\inifile.com Drubcd\etc\autoset.bat []set ramsz=20480 bin\inifile.com Drubcd\etc\autoset.bat []set ubcdurl=http://www.ultimatebootcd.com/virusdef rem Remove the Odi32-drivers bin\deltree.com /y Drubcd\lib\odi32 rem Add all Odi16-drivers bin\xcopy.exe cabs\odi16\*.* Drubcd\lib\odi16\. /E /I /H /N /Y rem Add Cbcombo to \level1\ if exist cabs\cbcombo.%nwext% bin\xcopy.exe cabs\cbcombo.%nwext% Drubcd\level1\. /I /H /N /Y bin\xcopy.exe cabs\freedos.%nwext% Drubcd\level1\. /I /H /N /Y bin\xcopy.exe cabs\ntfs.%nwext% Drubcd\level1\. /I /H /N /Y bin\xcopy.exe cabs\vc.%nwext% Drubcd\level1\. /I /H /N /Y bin\xcopy.exe cabs\aspiusb.%nwext% Drubcd\level1\. /I /H /N /Y rem Add IP Print Server PPRD to \level0\ bin\xcopy.exe cabs\lpprd.%nwext% Drubcd\level0\. /I /H /N /Y rem bin\xcopy.exe cabs\ltools.%nwext% Drubcd\level0\. /I /H /N /Y rem Move bin\xcopy.exe Drubcd\level3\nwlan.%nwext% Drubcd\level0\. /I /H /N /Y bin\deltree.com /y Drubcd\level3\nwlan.%nwext% if exist Drubcd\level0\lfn.%nwext% bin\xcopy.exe Drubcd\level0\lfn.%nwext% Drubcd\level1\. /I /H /N /Y if exist Drubcd\level1\lfn.%nwext% bin\deltree.com /y Drubcd\level0\lfn.%nwext% rem if exist Drubcd\level2\idle.%nwext% bin\xcopy.exe Drubcd\level2\idle.%nwext% Drubcd\level0\. /I /H /N /Y rem if exist Drubcd\level0\idle.%nwext% bin\deltree.com /y Drubcd\level2\idle.%nwext% rem Add Autorun3 if exist cabs\autorun3.%nwext% bin\xcopy.exe cabs\autorun3.%nwext% Drubcd\level3\. /I /H /N /Y rem Remove NetWare 32 bit client bin\deltree.com /y Drubcd\lib\nw32pkt.%nwext% bin\deltree.com /y Drubcd\lib\nw32pkte.%nwext% bin\deltree.com /y Drubcd\lib\nw32pktt.%nwext% bin\deltree.com /y Drubcd\lib\nw32pktf.%nwext% bin\deltree.com /y Drubcd\lib\nw3232t.%nwext% bin\deltree.com /y Drubcd\lib\nw3232f.%nwext% bin\deltree.com /y Drubcd\lib\nw3232e.%nwext% bin\deltree.com /y Drubcd\lib\nw3232.%nwext% bin\deltree.com /y Drubcd\lib\nw1632.%nwext% bin\deltree.com /y Drubcd\lib\nwipx32.%nwext% bin\deltree.com /y Drubcd\lib\nwtcp32.%nwext% bin\deltree.com /y Drubcd\lib\nwodi32.%nwext% bin\deltree.com /y Drubcd\lib\nw32clnt.%nwext% bin\deltree.com /y Drubcd\lib\nwslp32.%nwext% bin\deltree.com /y Drubcd\lib\tinyhost.%nwext% rem Remove Umbfill bin\deltree.com /y Drubcd\bin\umbfill.com bin\deltree.com /y Drubcd\bin\dummy.sys if exist bin\bcdw.com bin\xcopy.exe bin\bcdw.com Drubcd\bin\. /I /H /N /Y rem if exist bin\bcdw_cl.com bin\xcopy.exe bin\bcdw_cl.com Drubcd\bin\. /I /H /N /Y bin\xcopy.exe bin\kbfl.com Drubcd\bin\. /I /H /N /Y rem Add 16 bit Client rem bin\xcopy.exe cabs\nwipx16.%nwext% Drubcd\lib\. /I /H /N /Y rem bin\xcopy.exe cabs\nwodi16.%nwext% Drubcd\lib\. /I /H /N /Y rem Add if exist cabs\bootutil.%nwext% bin\xcopy.exe cabs\bootutil.%nwext% Drubcd\level0\. /I /H /N /Y rem if exist cabs\vnc.%nwext% bin\xcopy.exe cabs\vnc.%nwext% Drubcd\level0\. /I /H /N /Y if exist cabs\partman.%nwext% bin\xcopy.exe cabs\partman.%nwext% Drubcd\level0\. /I /H /N /Y rem Add Aspi if not exist Cabs\aspi\*.* goto _noaspi if exist cabs\aspi.%nwext% bin\xcopy.exe cabs\aspi.%nwext% Drubcd\level0\. /I /H /N /Y if not exist Drubcd\level0\aspi.%nwext% goto _noaspi if not exist Drubcd\lib\aspi md Drubcd\lib\aspi if exist Cabs\aspi\*.* bin\xcopy.exe Cabs\aspi Drubcd\lib\aspi\. /I /H /N /Y if exist cabs\aspicd.%nwext% bin\xcopy.exe cabs\aspicd.%nwext% Drubcd\lib\. /I /H /N /Y rem if exist cabs\scsitool.%nwext% bin\xcopy.exe cabs\scsitool.%nwext% Drubcd\level0\. /I /H /N /Y rem if exist cabs\pcidevs.%nwext% bin\xcopy.exe cabs\pcidevs.%nwext% Drubcd\level0\. /I /H /N /Y rem if exist cabs\telnet.%nwext% bin\xcopy.exe cabs\telnet.%nwext% Drubcd\level0\. /I /H /N /Y rem if exist cabs\sshdos.%nwext% bin\xcopy.exe cabs\sshdos.%nwext% Drubcd\level0\. /I /H /N /Y rem if exist cabs\scpdos.%nwext% bin\xcopy.exe cabs\scpdos.%nwext% Drubcd\level0\. /I /H /N /Y if exist cabs\cert.%nwext% bin\xcopy.exe cabs\cert.%nwext% Drubcd\lib\. /I /H /N /Y rem if exist cabs\cwsdpmi.%nwext% bin\xcopy.exe cabs\cwsdpmi.%nwext% Drubcd\level2\. /I /H /N /Y rem if exist cabs\curl.%nwext% bin\xcopy.exe cabs\curl.%nwext% Drubcd\level1\. /I /H /N /Y if exist cabs\autovir.%nwext% bin\xcopy.exe cabs\autovir.%nwext% Drubcd\level0\. /I /H /N /Y if exist cabs\wget.%nwext% bin\xcopy.exe cabs\wget.%nwext% Drubcd\lib\. /I /H /N /Y if exist cabs\win32.%nwext% bin\xcopy.exe cabs\win32.%nwext% Drubcd\level0\. /I /H /N /Y if exist bin\unzip.exe bin\xcopy.exe bin\unzip.exe Drubcd\bin\. /I /H /N /Y if exist bin\extract.exe bin\xcopy.exe bin\extract.exe Drubcd\bin\. /I /H /N /Y if exist bin\format.exe bin\xcopy.exe bin\format.exe Drubcd\bin\. /I /H /N /Y :_noaspi rem Add Profiles and Global.set bin\xcopy.exe bin\Fdubcd\*.* Drubcd\etc\. /E /I /H /N /Y bin\deltree.com /y Drubcd\etc\_nwlan32.pci if exist Drubcd\etc\ubcd*.bat bin\xcopy.exe Drubcd\etc\ubcd*.bat Drubcd\bin\. /I /H /N /Y if exist Drubcd\etc\ubcd*.bat bin\deltree.com /y Drubcd\etc\ubcd*.bat bin\sedmod.exe -i -e "s/FreeDOS/OpenDOS/" Drubcd\etc\ubcd.txt > ubcd.bak type ubcd.bak > Drubcd\etc\ubcd.txt if exist ubcd.bak del ubcd.bak > nul rem Write Diskid.txt if not exist Drubcd.cmt goto _nodiskid type bin\diskid.1 > Drubcd\diskid.txt type Drubcd.cmt >> Drubcd\diskid.txt type bin\diskid.2 >> Drubcd\diskid.txt :_nodiskid rem Uharc goto _sqeeze :_uharc if "%nwarc%"=="/3" goto _sqeeze call Nwdsk.bat Drubcd /! /3 if errorlevel 1 goto _end goto _bfi rem Sqeeze Nics :_sqeeze if not exist Cabs\Pcidevs.%nwext% call Nwdsk.bat Drubcd /!! %nwarc% if errorlevel 1 goto _end rem Build a diskette image from this dir :_bfi if exist Drubcd.img del Drubcd.img > nul bin\bfi.exe -t=%flopsz% -f=Drubcd.img -b=bin\opendos.144 -l=NwDsk340drd Drubcd :_end set flopsz= set nwarc= set nwext=