Can someone tell me line by line, what this is doing?

August 10, 2020 at 13:52:30
Specs: Windows 10
BUFFERS=15,0
FILES=30

LASTDRIVE=E
FCBS=4,0
STACKS=9,256 This is OK, I just need to know the lower part


[Menu]
MenuItem=TOSHIBA,Load NEW IMAGE with a Toshiba CD-ROM drive
MenuItem=TEAC,Load NEW IMAGE with a TEAC CD-ROM drive

[TOSHIBA]
DEVICE=TAISATAP.SYS /D:MSCD000 /N:1

[TEAC]
DEVICE=A:\TEAC_CDI.SYS /D:TEAC-CDI

message edited by chrcon


See More: Can someone tell me line by line, what this is doing?


#1
August 10, 2020 at 15:12:38
I'm no longer an expert on DOS programming, but these lines
appear to give you, the user, the option to choose which driver
to use for the CD-ROM drive, either Toshiba or TEAC. That
driver is then loaded.

If you are asking because the program doesn't work, my guess
is that the line that gets input from the user has been omitted,
but that is where the limits of my knowledge become important.
I have been surprised by DOS code I've seen recently. It is
more capable than I remember from 25 years ago. Maybe the
"menuitem" command takes the user input, too.

Now I notice that the line for the TEAC drive begins with "A:".
So the TEAC driver is explicitly on the floppy drive, while the
Toshiba driver is on the default drive. Which I would expect
to also be the floppy drive.

-- Jeff, in Minneapolis

message edited by Jeff Root


Reply ↓  Report •

#2
August 11, 2020 at 07:41:31
Thanks Jeff!

I am modifying this yet it keeps skipping over the cdrom and booting up to the OS. What you see here does boot to the cdrom. I can make very small changes, yet it affects the behavior in a way that prevents it from booting to the A: or cdrom.

I am trying to put everything on the cdrom and it boot off the cdrom to allow to load an image from the cdrom, OR automatically start GHOST on the cdrom. The OS is Windows NT. These autoexec and config.sys files are also what I am using in my .IMA file to make the cd bootable using cdburnerXP

Heres the rest:

AUTOEXEC
@ECHO OFF
PROMPT $p$g$
GOTO %CONFIG%


:CDROM
A:\MSCDEX.EXE /D:CDROM /M:15

:COMMON
rem ECHO TO RUN THE GHOST UTILITY,
rem ECHO FOLLOW THE INSTRUCTIONS

d:ghost -CLONE,mode=load,src=c:J-871980004,dst=1,sze1=V -SURE


CONFIG.SYS
BUFFERS=15,0
FILES=30

LASTDRIVE=E
FCBS=4,0
STACKS=9,256


[Menu]
MenuItem=CDROM,Load NEW IMAGE with a Generic CD-ROM drive

[CDROM]
DEVICE=A:\OAKCDROM.SYS /D:CDROM

message edited by chrcon


Reply ↓  Report •

#3
August 11, 2020 at 16:50:36
You need someone who knows more than I know.

All of the bootable CDs I have made were written by others,
and it is becoming more and more apparent how long it has
been since I last worked with DOS, even though I did it a lot
15-35 years ago.

Can you explain why you have the drive "A:\" for the path to
the CD driver? I don't remember needing to specify the path.

Huh. I took a quick look at the config.sys file on an old floppy,
and I see that the menu command works just as you showed.

The floppy I looked at happens to set up a RAM drive to
emulate a hard drive, because a floppy doesn't have enough
space to do everything the program needs to do. I wonder if
the "Ghost" program you are trying to run might do the same
thing for the same reason? If so, that could change the drive
letter designations.

I hope somebody comes along who actually knows this stuff.

-- Jeff, in Minneapolis


Reply ↓  Report •
Related Solutions


Ask Question