Autoexec.bat will not run on DOS 6.2.2 boot CD, how do I fix this??

Hi All,
I have downloaded a DOS 6.2.2 Boot CD (.iso) from to use with making an auto restore ghost dvd. I have injected my ghost.exe files and my ghost images into the bootable .iso file.  I also edited the autoexec.bat to look like this

@echo off

MSCDEX.EXE  /D:banana /L:R

ghost -clone,mode=pload,src=r:\hp11172008.gho:1,dst=1:1 -sure -fx

After booting and displaying that the MSCDEX.EXE runs and my Cd drive is R I get this prompt,


The only way the AUTOEXEC.bat does what I want it to is if I enter in "R:\autoexec"

I get the same A:\> prompt even when I delete the autoexec.bat from the .iso

Anything on this would be greatly appreciated.

Thanks so much!
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

I'm not fully conversant with this problem as it's been a while since I last used DOS 6.2.... I don't think DOS is able to determine where it booted from....

Would setting COMSPEC help at all. Try adding the following line (or something similar) to your CONFIG.SYS file which should be placed in the root directory of your CD:

shell=r:\ /e:256

NOTE: This assumes R: is the drive you are booting from.

As a side note, COMSPEC can also be set in your AUTOEXEC.BAT file (or any other batch fiile for that matter).

(be interesting to see if that works for you)
bjohnson_MNAuthor Commented:
The same issue sitll happens. Any commands in the Autoexec file still do not run.
The ISO image you downloaded was created using 'Floppy Drive' emulation option. You will need to create your own bootable ISO image file using the 'No Emulation' option.

You will require an ISO editor (I presume you have one. If not, there are plenty to choose from if you Google)

A good article, albeit dated, explaining the structure of bootable CDROMs (formerly known as 'El Torito') can be found at:

Another good read is:

One thing I did notice however, is that while at the A:\> prompt, you can still issue external DOS commands which are accessed off the CD. This is also true if you change to R:

Another thing I noticed is the filesize difference of MSCDEX.EXE from the version I have. IO.SYS, MSDOS.SYS and COMMAND.COM were identical as far as I could see.

Even replacing the CD driver, CD1.SYS (etc), with a standard ATAPI driver, replacing MSCDEX.EXE and editing both AUTOEXEC.BAT and CONFIG.SYS files the system still booted showing it had booted from the CD1.SYS driver - very peculiar as this was totally removed from the ISO image file.

Furthermore, at the A:\> prompt, TYPE CONFIG.SYS shows CONFIG.SYS is using CD1.SYS whereas TYPE CONFIG.SYS from the F:\> prompt shows CONFIG.SYS is using the replacement ATAPI driver - very fishy!! It's almost as though the system is reading from two entirely different CONFIG.SYS files.

I Also notice if you enter the commmand TRUENAME at the A:|> prompt you get "A:\" whereas entering it at the R:\> prompt you get "A:\\.R:\" - I must admit, this is a new one on me....

On further investigation, B: is not available (if you remember, both A: and B: was used to refer to the same physical floopy drive in a single-floppy system. If you've ever XCOPYed floppies using "XCOPY A: B:" in the past you'll know what I mean). Also, S: is not available - but that doesn't surprise me as S: infers a mapping to B: just as R: is to A:.

On a final note, as well as emulating a floppy disk, your bootable ISO image file can also be set to emulate a hard disk drive.

Anyway, best of luck creating your bootable ISO image file.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
10 Tips to Protect Your Business from Ransomware

Did you know that ransomware is the most widespread, destructive malware in the world today? It accounts for 39% of all security breaches, with ransomware gangsters projected to make $11.5B in profits from online extortion by 2019.

PS. If you read the original El Torito specification article don't forget the read the supplement article too:
In your AUTOEXEC.BAT, have you tried references to A: instead of R: such as:

@echo off
MSCDEX.EXE  /D:banana /L:R
A:\ghost -clone,mode=pload,src=A:\hp11172008.gho:1,dst=1:1 -sure -fx

Forget the R:.... just use A:

NOTE: If need be, remove the '@ECHO OFF' command to confirm AUTOEXEC.BAT actuall runs and executes each line.... once you're satisfied it works well, put the '@ECHO OFF' back in and burn a final CD.

@echo off
MSCDEX.EXE  /D:banana /L:R
ghost -clone,mode=pload,src=A:\hp11172008.gho:1,dst=1:1 -sure -fx

As A: is already your current drive however, note the path 'A:\hp111....'
bjohnson_MNAuthor Commented:
Ok Thanks for all your comments. Please give me a few days to try this and report back as I won't be into the office till monday
Very worth a look at....
I hope you've had success in achieving what you set out to do. If that's the case It would be great to know what steps you took to finally get there.

Anyway, kind regards and thank you for accepting my solution.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Storage Software

From novice to tech pro — start learning today.