Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
I have the same problem as is listed here- http://www.computing.net/dos/wwwboard/forum/12562.html, except my OS is Windows ME and I'm booting from a startup disk. I can get to C:\vnm\afraid\ but then when I type "afraid" to launch the batch file, it still says "Invalid Drive Specification". I know the .bat file is in there. What am I doing wrong?

It sounds like an error generated by a command from inside the batch file.
If you post it, someone may perhaps fix it for you.
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br

I'm guessing you mean the text of the batch file. If not, I apologize for my ignorance.
@echo off
@rem Play game normally
E:
E:\AFRAID E:\AFRAID.DTA -dp C:\VNM\AFRAID
C:

Yeah, that's what I meant.
You see, that batch file is refeering to files on specific paths under the C and E drives. E drive suggests CD-ROM. This batch file should run a game from CD, am I right?
First of all, you need the CD-ROM drivers loaded into memory properly by your boot disk in order to be able to use your CD-ROM drive. The fact that it is installing and working under Windows has no relation with it working under DOS.
Second, after getting your CD-ROM installed, if it's on the E: drive, the batch file should work (with the proper CD inserted). If another drive letter is assigned to the CD, you gotta change the batch file. Let's say the CD gets the D: letter. The batch file should be:
@echo off
@rem Play game normally
D:
D:\AFRAID D:\AFRAID.DTA -dp C:\VNM\AFRAID
C:-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br_______________________________________________________

I have not written bat files but all i have looked at always has a ; before additional drive letters ie: D:\AFRAID ;D:\AFRAID.DTA -dp ;C:\VNM\AFRAID
Secret_Doom - is the ; required or is it only for use by us poor humans ?

Generally, in the DOS command prompt syntax, the semicolon (;) has the same function of the space or comma, which is to simply separate parameters.
So, there's no problem if you don't use the semicolon between parameters, as long as you use a space or comma to separate them.
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br

Thanks for the idea. I changed the batch file to look for the CD-ROM in drive F instead of E and it found it. One question though, why is it that when I look in My Computer, the CD-ROM drive is listed as E?

The letter assigned to a drive depends on its installation/configuration. You can specify any avaliable letter for your CD-ROM, wether on Windows or on MS-DOS (from C on, A and B are generally only for floppy).
The configurations that specify which letter the drive should get, on both DOS and Windows, are totally independent, so it's perfectly normal that different letters could get assigned.
When automatic configurations are used, generally the first avaliable letter is assigned. In that case, the difference between DOS and Windows could be due to the boot disk implementing an additional drive, a RAM drive.
-- Leonardo Pignataro - Secret_Doom --
secret_doom@hotmail.com
www.batch.hpg.com.br

![]() |
![]() |
![]() |

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