MSFN Forum: Boot CD need help - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Boot CD need help Rate Topic: -----

#1 User is offline   SLiDer84 

  • Group: Members
  • Posts: 8
  • Joined: 03-September 07

Posted 03 September 2007 - 02:44 AM

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


#2 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 8,791
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 03 September 2007 - 04:34 AM

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...dos-primer.html
http://home.att.net/.../dos_batch.html
http://www.chebucto....S/BatBasic.html

jaclaz

#3 User is offline   SLiDer84 

  • Group: Members
  • Posts: 8
  • Joined: 03-September 07

Posted 03 September 2007 - 04:58 AM

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

This post has been edited by SLiDer84: 03 September 2007 - 05:00 AM


#4 User is offline   jaclaz 

  • The Finder
  • Group: Developers
  • Posts: 8,791
  • Joined: 23-July 04
  • OS:none specified
  • Country: Country Flag

Posted 03 September 2007 - 06:46 AM

Well, that won't be difficult, just delete what you don't need!

Config.sys:

Quote

[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):

Quote

@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

#5 User is offline   SLiDer84 

  • Group: Members
  • Posts: 8
  • Joined: 03-September 07

Posted 03 September 2007 - 06:55 AM

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: ?

This post has been edited by SLiDer84: 03 September 2007 - 06:57 AM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy