Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
i cant seem to get the cdrom reading.. could someone post the lines to put in autoexec and config.sys..? thanks.

Autoexec.bat.........
a:\cdrom\MSCDEX /D:SSCD000
rem mode con codepage prepare=((850)
rem mode con codepage select=850
rem keyb uk,,keyboard.systhis is a .bat I wrote that might help...
ren c:\config.sys config.000
ren c:\autoexec.bat autoexec.000
copy a:\config.rdb c:\config.sys /y
copy a:\autoexec.rdb c:autoexec.bat /y
c:
md cdrom
a:
cd cdrom
copy a:\himem.sys c:\cdrom
copy *.* c:\cdrom

Ummm? Anyway, for a base CD-ROM supporting autoexec.bat and config.sys, they will look like and need the following. These are the files you will need to know the location of...
- The CD-ROM driver's *.sys file
- mscdex.exe
- himem.sys (not necessary but a good idea)
...and the files will look like...
[config.sys]
device=drive_letter:\file_path\himem.sys
devicehigh=drive_letter:\file_path\cdrom_driver_sys /d:cdrom01[autoexec.bat]
lh drive_letter:\file_path\mscdex.exe /d:cdrom01 /l:drive_letter_for_cdrom
Ok, a quick explanation. "drive_letter" refers to the drive on which the file in question resides. If you are making a boot disk, that would probably be A:\. If you're trying to get the hard drive to boot it, it'll probably be C:\. Next is "file_path". This just refers to the path to the file in question. Let's say you have MS-DOS 6.22 installed. In that state, himem.sys and mscdex.exe will be located at "c:\dos". The "file_path" portion would be "dos". The final "fill in the blank value" is "drive_letter_for_cdrom". This is simply an unused drive letter that you wish the CD-ROM to occupy. Most of the time it's D:\ - and as such, that value would be filled in as "/l:d". If you get too big of a letter, you may want to add a final line to config.sys as "lastdrive=z" to make sure you have the memory you'll need allocated. Oops, skipped an important one - "cdrom_driver_sys". Since I don't know what driver you have for your CD-ROM - or even if you have one, I'll tell how mine looks. I have a *.sys file called "nec_ide.sys" for one of my computers. I usually copy that to c:\dos to keep it in a known place. So for me, "cdrom_driver_sys" would be "nec_ide.sys". The "/d:" in both config.sys and autoexec.bat must be identical as they denote the driver name that ties those two together. The "/l:" in autoexec.bat specifies the drive letter for the CD-ROM to occupy as explained above. So a final autoexec.bat and config.sys as it would appear on my system...
[config.sys]
device=c:\dos\himem.sys
devicehigh=c:\dos\nec_ide.sys /d:cdrom01[autoexec.bat]
lh c:\dos\mscdex.exe /d:cdrom01 /l:d
Tada!

![]() |
Arachne browser for dos p...
|
Writing of Batch file
|

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.
| Ads by Google |