SLiDer84 Posted September 3, 2007 Posted September 3, 2007 Hi Friends,I'm trying do make my own BOOT CD. But I have some problems with understanding the autoexec file. Is here anyone who could comment this autoexec file step by step what are doing all this lines?? @ECHO OFFset EXPAND=YESSET DIRCMD=/O:Nset LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 CclsIF "%config%"=="NETCD" echo Loading Network Configuration Utility v3.55IF "%config%"=="NET" echo Loading Network Configuration Utility v3.55IF "%config%"=="GIGNET" echo Loading Network Configuration Utility v3.55call setramd.bat %LglDrv%set temp=%RAMD%:\tmpset tmp=%RAMD%:\tmppath=%RAMD%:\;a:\;%CDROM%:\copy a:\command.com %RAMD%:\ >nulset comspec=%RAMD%:\command.comIF "%config%"=="NONE" GOTO QUIT:EXT%RAMD%:MD NETIF "%config%"=="CD" goto NONETIF "%config%"=="NONE" goto NONETA:\archive makeboot.exe %RAMD%:\NET >nulA:\archive netcards.ini %RAMD%:\NET >nulA:\archive tcputils.ini %RAMD%:\NET >nulCOPY A:\LMHOSTS %RAMD%:\NET > nul%RAMD%:CD NET%RAMD%:\NET\makeboot.exe /n%RAMD%:\NET:NONETecho Copying System Files into memory...COPY A:\ARCHIVE.EXE %RAMD%:\ >nulecho.echo Extracting...%RAMD%:\archive -N %RAMD%:\NET >nul%RAMD%:IF "%config%"=="NET" GOTO NETIF "%config%"=="GIGNET" GOTO NETLH %ramd%:\NET\MSCDEX.EXE /D:mscd001 /L:%CDROM%IF "%config%"=="NETCD" GOTO NETecho.GOTO QUIT:NETCLS%RAMD%:CD\NETpath=%path%;a:\;%RAMD%:;%RAMD%:\NETif exist a:\netdrv\*.* copy a:\netdrv\*.* %RAMD%:\netLH %RAMD%:\net\net initialize%RAMD%:\net\netbind.com%RAMD%:\net\umb.comLH %RAMD%:\net\tcptsr.exeLH %RAMD%:\net\tinyrfc.exeLH %RAMD%:\net\nmtsr.exeLH %RAMD%:\net\emsbfr.exeif exist %RAMD%:\net\runlast.bat call %RAMD%:\net\runlast.batif not exist %RAMD%:\net\runlast.bat LH %RAMD%:\net\net logon /SAVEPW:NO /Ygoto QUIT:QUITset CDROM=set LglDrv=RegardsSLiDer84
jaclaz Posted September 3, 2007 Posted September 3, 2007 This is a multi-configuration autoexec.bat.You cannot say what it actually does unless you look at the accompanying CONFIG.SYS.Moreover it calls a few other .bat and "not-standard" .exe files, each of which can do several other tasks:setramd.batmakeboot.exearchive.exe......runlast.batIt seems to be "hardcoded" for the A:\ drive.Basically it appears to let the user choose between three possible configurations, "NETCD", "NET" and "GIGNET", then (most probably) through setramd.bat creates a RAMdisk where a number of programs and settings are copied and executed.It is not at all difficult to follow it, but you need some basic primer on batch commands and autoexec.bat/config.sys to be able to customize it, some links:http://www.claymania.com/dos-primer.htmlhttp://home.att.net/~gobruen/progs/dos_batch/dos_batch.htmlhttp://www.chebucto.ns.ca/~ak621/DOS/BatBasic.htmljaclaz
SLiDer84 Posted September 3, 2007 Author Posted September 3, 2007 (edited) Maybe could somebody help me to create te autoexec and config.sys files. I wont do have 3 possibilities:one would be Start with CD supportStart with CD and Net supportStart with only net support.I have working boot disk but how you can see there are 5 possibilities:menuitem=CD, Start computer with CD-ROM support.menuitem=NET, Start computer with Network support.menuitem=GIGNET, Mode ONLY for Intel Gigabit network supportmenuitem=NETCD, Start the computer with CD-ROM and Network support.menuitem=NONE, Start the computer with basic system.and i need only 3 my config.sys looks like that:[menu]menuitem=CD, Start computer with CD-ROM support.menuitem=NET, Start computer with Network support.menuitem=GIGNET, Mode ONLY for Intel Gigabit network supportmenuitem=NETCD, Start the computer with CD-ROM and Network support.menuitem=NONE, Start the computer with basic system.menudefault=NET,30menucolor=7,0[CD]device=himem.sys /testmem:offfileshigh=30buffershigh=15dos=high,umbstacks=9,256devicehigh=ramdrive.sys /E 4096lastdrive=zdevice=oakcdrom.sys /D:mscd001[NET]device=himem.sysdevicehigh=ramdrive.sys /E 4096device=emm386.exeDOS=HIGH,UMB,AUTOSHELL=A:\COMMAND.COM /E:1024 /PSTACKSHIGH=0,0FCBSHIGH=1,0FILESHIGH=60BUFFERSHIGH=15lastdrive=Zdevicehigh=ifshlp.sys[GIGNET]device=himem.sysdevicehigh=ramdrive.sys /E 4096DOS=HIGH,UMB,AUTOSHELL=A:\COMMAND.COM /E:1024 /PSTACKSHIGH=0,0FCBSHIGH=1,0FILESHIGH=60BUFFERSHIGH=15lastdrive=Zdevicehigh=ifshlp.sys[NETCD]device=himem.sysdevicehigh=ramdrive.sys /E 4096device=emm386.exeDOS=HIGH,UMB,AUTOSTACKSHIGH=0,0FCBSHIGH=1,0FILESHIGH=60BUFFERSHIGH=15lastdrive=Zdevicehigh=ifshlp.sysdevicehigh=oakcdrom.sys /D:mscd001 [NONE]files=60stacks=0,0buffers=30lastdrive=Z Edited September 3, 2007 by SLiDer84
jaclaz Posted September 3, 2007 Posted September 3, 2007 Well, that won't be difficult, just delete what you don't need! Config.sys:[menu]menuitem=CD, Start computer with CD-ROM support.menuitem=NET, Start computer with Network support.menuitem=GIGNET, Mode ONLY for Intel Gigabit network supportmenuitem=NETCD, Start the computer with CD-ROM and Network support.menuitem=NONE, Start the computer with basic system.menudefault=NET,30menucolor=7,0[CD]device=himem.sys /testmem:offfileshigh=30buffershigh=15dos=high,umbstacks=9,256devicehigh=ramdrive.sys /E 4096lastdrive=zdevice=oakcdrom.sys /D:mscd001[NET]device=himem.sysdevicehigh=ramdrive.sys /E 4096device=emm386.exeDOS=HIGH,UMB,AUTOSHELL=A:\COMMAND.COM /E:1024 /PSTACKSHIGH=0,0FCBSHIGH=1,0FILESHIGH=60BUFFERSHIGH=15lastdrive=Zdevicehigh=ifshlp.sys[GIGNET]device=himem.sysdevicehigh=ramdrive.sys /E 4096DOS=HIGH,UMB,AUTOSHELL=A:\COMMAND.COM /E:1024 /PSTACKSHIGH=0,0FCBSHIGH=1,0FILESHIGH=60BUFFERSHIGH=15lastdrive=Zdevicehigh=ifshlp.sys[NETCD]device=himem.sysdevicehigh=ramdrive.sys /E 4096device=emm386.exeDOS=HIGH,UMB,AUTOSTACKSHIGH=0,0FCBSHIGH=1,0FILESHIGH=60BUFFERSHIGH=15lastdrive=Zdevicehigh=ifshlp.sysdevicehigh=oakcdrom.sys /D:mscd001 [NONE]files=60stacks=0,0buffers=30lastdrive=ZAutoexec.bat (but you cam also leave it as is):@ECHO OFFset EXPAND=YESSET DIRCMD=/O:Nset LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15set LglDrv=%LglDrv% O 14 N 13 M 12 L 11 K 10 J 9 I 8 H 7 G 6 F 5 E 4 D 3 CclsIF "%config%"=="NETCD" echo Loading Network Configuration Utility v3.55IF "%config%"=="NET" echo Loading Network Configuration Utility v3.55IF "%config%"=="GIGNET" echo Loading Network Configuration Utility v3.55call setramd.bat %LglDrv%set temp=%RAMD%:\tmpset tmp=%RAMD%:\tmppath=%RAMD%:\;a:\;%CDROM%:\copy a:\command.com %RAMD%:\ >nulset comspec=%RAMD%:\command.comIF "%config%"=="NONE" GOTO QUIT:EXT%RAMD%:MD NETIF "%config%"=="CD" goto NONETIF "%config%"=="NONE" goto NONETA:\archive makeboot.exe %RAMD%:\NET >nulA:\archive netcards.ini %RAMD%:\NET >nulA:\archive tcputils.ini %RAMD%:\NET >nulCOPY A:\LMHOSTS %RAMD%:\NET > nul%RAMD%:CD NET%RAMD%:\NET\makeboot.exe /n%RAMD%:\NET:NONETecho Copying System Files into memory...COPY A:\ARCHIVE.EXE %RAMD%:\ >nulecho.echo Extracting...%RAMD%:\archive -N %RAMD%:\NET >nul%RAMD%:IF "%config%"=="NET" GOTO NETIF "%config%"=="GIGNET" GOTO NETLH %ramd%:\NET\MSCDEX.EXE /D:mscd001 /L:%CDROM%IF "%config%"=="NETCD" GOTO NETecho.GOTO QUIT:NETCLS%RAMD%:CD\NETpath=%path%;a:\;%RAMD%:;%RAMD%:\NETif exist a:\netdrv\*.* copy a:\netdrv\*.* %RAMD%:\netLH %RAMD%:\net\net initialize%RAMD%:\net\netbind.com%RAMD%:\net\umb.comLH %RAMD%:\net\tcptsr.exeLH %RAMD%:\net\tinyrfc.exeLH %RAMD%:\net\nmtsr.exeLH %RAMD%:\net\emsbfr.exeif exist %RAMD%:\net\runlast.bat call %RAMD%:\net\runlast.batif not exist %RAMD%:\net\runlast.bat LH %RAMD%:\net\net logon /SAVEPW:NO /Ygoto QUIT:QUITset CDROM=set LglDrv=However both files could be "better" written, avoiding some duplicates entries, using a [Common] part.jaclaz
SLiDer84 Posted September 3, 2007 Author Posted September 3, 2007 (edited) jaclaz I would like to make it as simple as it could be if you could please help me with this I now that i'm getting with this files some errors i think that in those files are some errors.And I have some questions do i need this:IF "%config%"=="NETCD" echo Loading Network Configuration Utility v3.55IF "%config%"=="NET" echo Loading Network Configuration Utility v3.55 I think that this is only showing some text.Why the section :EXT is not closed on the end with goto QUITAnd one more thing i don't now realy where to put the command IF "%config%"== I can see it in ext: nonet: can't it be before the section EXT: ? Edited September 3, 2007 by SLiDer84
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now