• We’re currently investigating an issue related to the forum theme and styling that is impacting page layout and visual formatting. The problem has been identified, and we are actively working on a resolution. There is no impact to user data or functionality, this is strictly a front-end display issue. We’ll post an update once the fix has been deployed. Thanks for your patience while we get this sorted.

Hard problem with bootdisk - Link Config and Autoexec

GeSuN

Senior member
I'll show you my 2 files on my bootdisk then explain my problem :

Config.sys :

[menu]
menuitem=CD, DOS Tools with CD-Rom support
menuitem=NOCD, DOS Tools without CD-Rom support
menuitem=GHOSTCD, Load Ghost with CD-Rom support
menuitem=GHOSTNOCD, Load Ghost without CD-Rom support
menudefault=CD,30
menucolor=7,0

[CD]
device=himem.sys /testmem😱ff
device=oakcdrom.sys /D:idecd001
*command here to tell autoexec.bat not to load Ghost*

[NOCD]
device=himem.sys /testmem😱ff
*command here to tell autoexec.bat not to load Ghost*

[GHOSTCD]
device=himem.sys /testmem😱ff
device=oakcdrom.sys /D:idecd001
*command here to tell autoexec.bat to load Ghost*

[GHOSTNOCD]
device=himem.sys /testmem😱ff
*command here to tell autoexec.bat to load Ghost*

[COMMON]
files=10
buffers=10
dos=high,umb
stacks=9,256
devicehigh=ramdrive.sys /E 2048
lastdrive=z


Autoexec.bat :

@ECHO OFF
MSCDEX.EXE /D:IDECD001 /L:Z


*Section 1*
*If Only DOS tools are loaded*

CLS


*Section 2*
*If GHOST IS Loaded*

A:
Ghost.exe


So the problem is : I want in Autoexec.bat to have 2 sections in autoexec.bat in for when only DOS tools are loaded and another one when GHOST is loaded...

Is this possible to choose wich section to load in autoexec, when making a choice in the menu of config.sys???
 
There can be only one autoexec.bat file, but which commands in it are run can be controlled by setting a variable that indicates which config.sys menu item has been selected. You can see how this is done by looking at a standard win98 startup floppy.
 
yea, look at the win98 bootdisk.... I think U'll want "goto menuitem" at the top... but check to be sure... designate goto's with a : and then a title
 
Back
Top