GEOSoft Posted May 25, 2007 Share Posted May 25, 2007 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!" Link to comment Share on other sites More sharing options...
Rick Posted May 25, 2007 Share Posted May 25, 2007 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!! Link to comment Share on other sites More sharing options...
GEOSoft Posted May 26, 2007 Author Share Posted May 26, 2007 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 outThanks 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!" Link to comment Share on other sites More sharing options...
lAIN Posted August 6, 2007 Share Posted August 6, 2007 (edited) I know this post is really old, but did someone ever figure this out? I'm trying to do the same thing. Edited August 6, 2007 by lAIN Link to comment Share on other sites More sharing options...
MHz Posted August 6, 2007 Share Posted August 6, 2007 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. Link to comment Share on other sites More sharing options...
lAIN Posted August 6, 2007 Share Posted August 6, 2007 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? Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now