Sign in to follow this  
Followers 0
Iuli

How to detect the type of media in drive ?

4 posts in this topic

Hi,

I'm in a big trouble. Is there any chance to detect with AutoIT the type of media (CD,DVD) in a selected drive.

Thank you very much .


[size="2"]SFXMaker[/size] - The most complete switchless installer creator software[indent][/indent]

Share this post


Link to post
Share on other sites



You could try using DriveGetType but I do not think that it knows the difference between CD and DVD. DriveGetFileSystem might also help.



Get Beta versions Here Get latest SciTE editor Here AutoIt 1-2-3 by Valuater - A great starting point.

Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Share this post


Link to post
Share on other sites

#3 ·  Posted (edited)

Yeah, thanks, DriveGetFileSystem would help me. But what if i want to detect disks as CD-R/DVD-R DVD+R, CD-RW/DVD-RW etc ?

Edited by Iuli

[size="2"]SFXMaker[/size] - The most complete switchless installer creator software[indent][/indent]

Share this post


Link to post
Share on other sites

Yeah, thanks, DriveGetFileSystem would help me. But what if i want to detect disks as CD-R/DVD-R DVD+R, CD-RW/DVD-RW etc ?

My approach was to extend my SPTI code (posted in these forums) which talks directly to the drive and use the Get Configuration CDB (0x46). I'd post the code I'm using now, but it is desperately in need of a cleanup.

-brendan

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