• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1669
  • Last Modified:

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 www.bootdisks.us 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

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,

A:\>

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!
0
bjohnson_MN
Asked:
bjohnson_MN
  • 7
  • 2
1 Solution
 
t0t0Commented:
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:\command.com /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)
0
 
bjohnson_MNAuthor Commented:
The same issue sitll happens. Any commands in the Autoexec file still do not run.
0
 
t0t0Commented:
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: http://www.singlix.net/trdos/BootableCDFormat.doc

Another good read is: http://en.wikipedia.org/wiki/El_Torito_(CD-ROM_standard)

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.
0
Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

 
t0t0Commented:
PS. If you read the original El Torito specification article don't forget the read the supplement article too: http://littlesvr.ca/isomaster/eltoritosuppl.php
0
 
t0t0Commented:
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.
0
 
t0t0Commented:
Or....

--------------------------------------------
@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....'
0
 
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
0
 
t0t0Commented:
Very worth a look at....

http://www.bootdisk.com/
0
 
t0t0Commented:
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.
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 7
  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now