Sign in to follow this  
Followers 0
GEOSoft

Optical drive type

6 posts in this topic

I have a need to break down the drive type further than DriveGetType will do it.

Does anyone know how to determine if a CDDrive is really a

CDR

CDRW

DVDR

DVDRW

It would also be good to be able to determine the media type (CD or DVD) but I can always get close enough to that by using DriveGetSize.

If you don't have it in AutoIt code but you do in vbscript then either post the vbscript or PM it to me (prefered). I'll take it from there.

I need this info for a script that will burn an image (ISO) file to CD or DVD. I can already do the burn, I just have to know what I'm burning to.


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites



yes its possible, i did it for a program last year, i've got it somewhere, its just a case of reading the registing, finding what cd drives are installed, then doing some binary reading of each to see if its cd-r, cd-rw etc.

i'll see if i can seek it out


Who needs puzzles when we have AutoIt!!

Share this post


Link to post
Share on other sites

yes its possible, i did it for a program last year, i've got it somewhere, its just a case of reading the registing, finding what cd drives are installed, then doing some binary reading of each to see if its cd-r, cd-rw etc.

i'll see if i can seek it out

Thanks Rick.

Does it also differentiate between CDRW and DVDRW?


George

Question about decompiling code? Read the decompiling FAQ and don't bother posting the question in the forums.

Be sure to read and follow the forum rules. -AKA the AutoIt Reading and Comprehension Skills test.***

The PCRE (Regular Expression) ToolKit for AutoIT - (Updated Oct 20, 2011 ver:3.0.1.13) - Please update your current version before filing any bug reports. The installer now includes both 32 and 64 bit versions. No change in version number.

Visit my Blog .. currently not active but it will soon be resplendent with news and views. Also please remove any links you may have to my website. it is soon to be closed and replaced with something else.

"Old age and treachery will always overcome youth and skill!"

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

I know this post is really old, but did someone ever figure this out? I'm trying to do the same thing.

Edited by lAIN

Share this post


Link to post
Share on other sites

I know this post is really old, but did someone ever figure this out? I'm trying to do the same thing.

Search for AutoIt Scriptomatic Tool and then have a look at Win32_CDROMDrive in the WMI Class.

:)

Share this post


Link to post
Share on other sites

Thanks, that helps alot.

I don't really know anything about WMI, I just started looking at AutoIT but I assumed changing $strCapabilities = $objItem.Capabilities(0) to $objItem.Capabilities(1)... etc. would let me traverse the capabilities Array.

Uh, this might be the wrong place to ask but if someone could help:

For my DVD writer I only get capabilities 3 and 7 (link which is "Random Access" and "Supports Removable Media"

But going on another computer with a CD Writer, I get capabilities 3 and 4 which are "Random Access" and "Supports Writing".

What gives? Does "Support Removable Media" imply "Supports Writing" for DVDs or something?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0