Tom's Guide | Tom's Hardware | Tom's Games
![]() |
![]() |
![]() |
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

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

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

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:\Dos70or set Path=%path%;d:\Dos710;d:\710\HdUtils
you can use the Path with or without the "Set
"

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

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