Computing.Net > Forums > Windows XP > CD ROM drive letter

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.

CD ROM drive letter

Reply to Message Icon

Name: Presage24
Date: March 27, 2007 at 05:10:20 Pacific
OS: Windows Vista Ultimate
CPU/Ram: 3GB/512
Product: Intel
Comment:


Hi All ,

Is there any way I can use %XXX% (xxx refers to CDROM) to map what ever CDROM drive is there on any machine . for example I can locate the root of Windows using %systemroot% from DOS or run command .

The reason is CD ROM drive letter vary from PC to another ,I want to have it as a variable to be able to run my application on any PC.

Thanks in advance.


Presage



Sponsored Link
Ads by Google

Response Number 1
Name: Presage24
Date: March 27, 2007 at 05:14:41 Pacific
Reply:

Hi All ,
Is there any way I can use %XXX% (xxx refers to CDROM) to map what ever CDROM drive is there on any machine . for example I can locate the root of Windows using %systemroot% from DOS or run command ,I want to do the same for the CD drive.

The reason is CD ROM drive letter vary from PC to another ,I want to have it as a variable to be able to run my application on any PC.

Thanks in advance


Presage


0

Response Number 2
Name: Phil Perry
Date: March 28, 2007 at 10:11:52 Pacific
Reply:

You're talking about finding which drive letter is the CD-ROM drive? Or, more precisely, which drive (could be CD-RW, DVD-ROM, etc.) is holding your disc?

I can't find any DOS commands to do it, but maybe there's something in the system API to do it. A none-too-quick and extremely dirty way to find which drive is a CD-ROM might be to (starting at D: and going up through Z:) do a DIR on each device letter and capture the output. Look for file(s) or label(s) that you know are unique to your CD. I don't think the Volume Serial Number will be of any use, since it seems to be XXXX-XXXX for anything but the C: drive. The VOL command can be used instead, if you only want to look at the label and serial number. Good luck, and let us know if you find a cleaner way!


0

Response Number 3
Name: Josh Doedrum
Date: April 23, 2007 at 14:29:01 Pacific
Reply:

There is a real good resource at
http://www.robvanderwoude.com/amb_c...

Download the source (button at bottom of page) and unzip. I found that CDROM3.bat worked for OS versions up to W2K and CDROMXP.bat worked for WinXP. Don't know about Vista but I'm sure it can be tweaked because one batch file looks at a registry entry and another uses DISKPART.exe. One of these should work for Vista.

Time for a coffee break...


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 Windows XP Forum Home


Sponsored links

Ads by Google


Results for: CD ROM drive letter

CD-ROM Drive Letter. (changing) www.computing.net/answers/windows-xp/cdrom-drive-letter-changing/70581.html

could not access to CD-ROM drive www.computing.net/answers/windows-xp/could-not-access-to-cdrom-drive/102039.html

Mysterious extra CD-Rom Drive www.computing.net/answers/windows-xp/mysterious-extra-cdrom-drive/67643.html