Skip to content
View in the app

A better way to browse. Learn more.

MSFN

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Boot CD need help

Featured Replies

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 OFF

set EXPAND=YES

SET DIRCMD=/O:N

set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15

set 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 C

cls

IF "%config%"=="NETCD" echo Loading Network Configuration Utility v3.55

IF "%config%"=="NET" echo Loading Network Configuration Utility v3.55

IF "%config%"=="GIGNET" echo Loading Network Configuration Utility v3.55

call setramd.bat %LglDrv%

set temp=%RAMD%:\tmp

set tmp=%RAMD%:\tmp

path=%RAMD%:\;a:\;%CDROM%:\

copy a:\command.com %RAMD%:\ >nul

set comspec=%RAMD%:\command.com

IF "%config%"=="NONE" GOTO QUIT

:EXT

%RAMD%:

MD NET

IF "%config%"=="CD" goto NONET

IF "%config%"=="NONE" goto NONET

A:\archive makeboot.exe %RAMD%:\NET >nul

A:\archive netcards.ini %RAMD%:\NET >nul

A:\archive tcputils.ini %RAMD%:\NET >nul

COPY A:\LMHOSTS %RAMD%:\NET > nul

%RAMD%:

CD NET

%RAMD%:\NET\makeboot.exe /n%RAMD%:\NET

:NONET

echo Copying System Files into memory...

COPY A:\ARCHIVE.EXE %RAMD%:\ >nul

echo.

echo Extracting...

%RAMD%:\archive -N %RAMD%:\NET >nul

%RAMD%:

IF "%config%"=="NET" GOTO NET

IF "%config%"=="GIGNET" GOTO NET

LH %ramd%:\NET\MSCDEX.EXE /D:mscd001 /L:%CDROM%

IF "%config%"=="NETCD" GOTO NET

echo.

GOTO QUIT

:NET

CLS

%RAMD%:

CD\NET

path=%path%;a:\;%RAMD%:;%RAMD%:\NET

if exist a:\netdrv\*.* copy a:\netdrv\*.* %RAMD%:\net

LH %RAMD%:\net\net initialize

%RAMD%:\net\netbind.com

%RAMD%:\net\umb.com

LH %RAMD%:\net\tcptsr.exe

LH %RAMD%:\net\tinyrfc.exe

LH %RAMD%:\net\nmtsr.exe

LH %RAMD%:\net\emsbfr.exe

if exist %RAMD%:\net\runlast.bat call %RAMD%:\net\runlast.bat

if not exist %RAMD%:\net\runlast.bat LH %RAMD%:\net\net logon /SAVEPW:NO /Y

goto QUIT

:QUIT

set CDROM=

set LglDrv=

Regards

SLiDer84


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.bat

makeboot.exe

archive.exe

...

...

runlast.bat

It 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.html

http://home.att.net/~gobruen/progs/dos_batch/dos_batch.html

http://www.chebucto.ns.ca/~ak621/DOS/BatBasic.html

jaclaz

  • Author

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 support

Start with CD and Net support

Start 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 support

menuitem=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 support

menuitem=NETCD, Start the computer with CD-ROM and Network support.

menuitem=NONE, Start the computer with basic system.

menudefault=NET,30

menucolor=7,0

[CD]

device=himem.sys /testmem:off

fileshigh=30

buffershigh=15

dos=high,umb

stacks=9,256

devicehigh=ramdrive.sys /E 4096

lastdrive=z

device=oakcdrom.sys /D:mscd001

[NET]

device=himem.sys

devicehigh=ramdrive.sys /E 4096

device=emm386.exe

DOS=HIGH,UMB,AUTO

SHELL=A:\COMMAND.COM /E:1024 /P

STACKSHIGH=0,0

FCBSHIGH=1,0

FILESHIGH=60

BUFFERSHIGH=15

lastdrive=Z

devicehigh=ifshlp.sys

[GIGNET]

device=himem.sys

devicehigh=ramdrive.sys /E 4096

DOS=HIGH,UMB,AUTO

SHELL=A:\COMMAND.COM /E:1024 /P

STACKSHIGH=0,0

FCBSHIGH=1,0

FILESHIGH=60

BUFFERSHIGH=15

lastdrive=Z

devicehigh=ifshlp.sys

[NETCD]

device=himem.sys

devicehigh=ramdrive.sys /E 4096

device=emm386.exe

DOS=HIGH,UMB,AUTO

STACKSHIGH=0,0

FCBSHIGH=1,0

FILESHIGH=60

BUFFERSHIGH=15

lastdrive=Z

devicehigh=ifshlp.sys

devicehigh=oakcdrom.sys /D:mscd001

[NONE]

files=60

stacks=0,0

buffers=30

lastdrive=Z

Edited by SLiDer84

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 support

menuitem=NETCD, Start the computer with CD-ROM and Network support.

menuitem=NONE, Start the computer with basic system.

menudefault=NET,30

menucolor=7,0

[CD]

device=himem.sys /testmem:off

fileshigh=30

buffershigh=15

dos=high,umb

stacks=9,256

devicehigh=ramdrive.sys /E 4096

lastdrive=z

device=oakcdrom.sys /D:mscd001

[NET]

device=himem.sys

devicehigh=ramdrive.sys /E 4096

device=emm386.exe

DOS=HIGH,UMB,AUTO

SHELL=A:\COMMAND.COM /E:1024 /P

STACKSHIGH=0,0

FCBSHIGH=1,0

FILESHIGH=60

BUFFERSHIGH=15

lastdrive=Z

devicehigh=ifshlp.sys

[GIGNET]

device=himem.sys

devicehigh=ramdrive.sys /E 4096

DOS=HIGH,UMB,AUTO

SHELL=A:\COMMAND.COM /E:1024 /P

STACKSHIGH=0,0

FCBSHIGH=1,0

FILESHIGH=60

BUFFERSHIGH=15

lastdrive=Z

devicehigh=ifshlp.sys

[NETCD]

device=himem.sys

devicehigh=ramdrive.sys /E 4096

device=emm386.exe

DOS=HIGH,UMB,AUTO

STACKSHIGH=0,0

FCBSHIGH=1,0

FILESHIGH=60

BUFFERSHIGH=15

lastdrive=Z

devicehigh=ifshlp.sys

devicehigh=oakcdrom.sys /D:mscd001

[NONE]

files=60

stacks=0,0

buffers=30

lastdrive=Z

Autoexec.bat (but you cam also leave it as is):

@ECHO OFF

set EXPAND=YES

SET DIRCMD=/O:N

set LglDrv=27 * 26 Z 25 Y 24 X 23 W 22 V 21 U 20 T 19 S 18 R 17 Q 16 P 15

set 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 C

cls

IF "%config%"=="NETCD" echo Loading Network Configuration Utility v3.55

IF "%config%"=="NET" echo Loading Network Configuration Utility v3.55

IF "%config%"=="GIGNET" echo Loading Network Configuration Utility v3.55

call setramd.bat %LglDrv%

set temp=%RAMD%:\tmp

set tmp=%RAMD%:\tmp

path=%RAMD%:\;a:\;%CDROM%:\

copy a:\command.com %RAMD%:\ >nul

set comspec=%RAMD%:\command.com

IF "%config%"=="NONE" GOTO QUIT

:EXT

%RAMD%:

MD NET

IF "%config%"=="CD" goto NONET

IF "%config%"=="NONE" goto NONET

A:\archive makeboot.exe %RAMD%:\NET >nul

A:\archive netcards.ini %RAMD%:\NET >nul

A:\archive tcputils.ini %RAMD%:\NET >nul

COPY A:\LMHOSTS %RAMD%:\NET > nul

%RAMD%:

CD NET

%RAMD%:\NET\makeboot.exe /n%RAMD%:\NET

:NONET

echo Copying System Files into memory...

COPY A:\ARCHIVE.EXE %RAMD%:\ >nul

echo.

echo Extracting...

%RAMD%:\archive -N %RAMD%:\NET >nul

%RAMD%:

IF "%config%"=="NET" GOTO NET

IF "%config%"=="GIGNET" GOTO NET

LH %ramd%:\NET\MSCDEX.EXE /D:mscd001 /L:%CDROM%

IF "%config%"=="NETCD" GOTO NET

echo.

GOTO QUIT

:NET

CLS

%RAMD%:

CD\NET

path=%path%;a:\;%RAMD%:;%RAMD%:\NET

if exist a:\netdrv\*.* copy a:\netdrv\*.* %RAMD%:\net

LH %RAMD%:\net\net initialize

%RAMD%:\net\netbind.com

%RAMD%:\net\umb.com

LH %RAMD%:\net\tcptsr.exe

LH %RAMD%:\net\tinyrfc.exe

LH %RAMD%:\net\nmtsr.exe

LH %RAMD%:\net\emsbfr.exe

if exist %RAMD%:\net\runlast.bat call %RAMD%:\net\runlast.bat

if not exist %RAMD%:\net\runlast.bat LH %RAMD%:\net\net logon /SAVEPW:NO /Y

goto QUIT

:QUIT

set CDROM=

set LglDrv=

However both files could be "better" written, avoiding some duplicates entries, using a [Common] part.

jaclaz

  • Author

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.55
IF "%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 QUIT

And 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 by SLiDer84

Create an account or sign in to comment

Recently Browsing 0

  • No registered users viewing this page.

Account

Navigation

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.