Computing.Net > Forums > Disk Operating System > Invalid path to CDROM

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

Invalid path to CDROM

Reply to Message Icon

Name: novice batcher
Date: April 12, 2004 at 09:41:51 Pacific
OS: DOS 7.10
CPU/Ram: AMD550
Comment:

I'm running a batch to access a file on a CDROM, Not from a DOS box but from Real mode DOS. But I can't get the path to CDROM right. I've tried every variation on this command:
%CDROM%
cd \DOS710
cd \DOS710\HDUtils
cmenu.exe
exit
It won't go to %CDROM% nor %CDROM%:\


Everyone wants a faster PC



Sponsored Link
Ads by Google

Response Number 1
Name: dtech10
Date: April 12, 2004 at 10:44:32 Pacific
Reply:

hi
Can you see the CdRom buy typing it's drive letter. ie d: e: f: ect.
Whats in the environment variable %CdRom%
type "set" or "echo %CdRom%" to see what it contains.
You need the drive letter of the CdRom in order to run the CMenu.exe file from another drive ie.
d:\cmenu.exe from another drive, or change to the drive by typing it's letter ie.
d:
CMenu.exe


0

Response Number 2
Name: novice batcher
Date: April 12, 2004 at 11:12:30 Pacific
Reply:

Thanks for your reply,
Problem is this:
Dos is loaded from CDROM, path is set to a
folder on CDROM, and I can call batches from DOS that are in the path (on CDROM).

THOSE CALLED BATCHES however, cannot call other batches or executables due to an invalid path.

I can manually navigate to CDROM, and run the batches instead of calling them from A:\1stbatch, and when I do, they'll find their respective call batches and executables.

Only when I'm at the A:\ prompt and run batch1 that calls batch2 on cdrom is the path invalid.

I use a menu system that calls batches in the environment path, and it works; called batches try to run other apps and it doesn't work - Invalid path returned. ("fileshigh" in config.sys is more than sufficient to run the called apps)
As I said, if I manually navigate to the called batches folder and run the batch, it'll find and run the executable. I'm puzzled.???


Everyone wants a faster PC


0

Response Number 3
Name: Rambler
Date: April 12, 2004 at 15:06:31 Pacific
Reply:

Yes, but what value does %CDROM% have?

Expert: someone who reads the manual when no-one's looking


0

Response Number 4
Name: dtech10
Date: April 13, 2004 at 15:34:23 Pacific
Reply:

Hi
As Rambler said whats in %CDROM%
You could change the path od the Environment variable in your first batch file.

ie. set CDROM=d:
set CDROM=d:\Dos70

or set Path=%path%;d:\Dos710;d:\710\HdUtils

you can use the Path with or without the "Set
"


0

Sponsored Link
Ads by Google
Reply to Message Icon

Related Posts

See More







Post Locked

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


Go to Disk Operating System Forum Home


Sponsored links

Ads by Google


Results for: Invalid path to CDROM

How to store current path to variable? www.computing.net/answers/dos/how-to-store-current-path-to-variable/10943.html

giving a path to a batch file www.computing.net/answers/dos/giving-a-path-to-a-batch-file/14784.html

Path to correct Ramdisk Letter www.computing.net/answers/dos/path-to-correct-ramdisk-letter/16271.html