I've tried almost all the properties for both Win32_CDROMDrive and
Win32_DiskDrive with no luck. Win32_PhysicalMedia could be my savoir,
but I can get it to work.
I read that Win32_CDROMDrive isn't fully supported by all drives yet,
and also isn't supported by WMI yet; but I'm hoping someone can help
me.
Noting that .MediaLoaded returns 0 when a blank CD is inserted (or when
there's no CD), take a look at the following:
Set colItems = objWMIService.ExecQuery("Select * from
Win32_CDROMDrive")
For Each objitem in colItems
if objitem.MediaLoaded = 0 AND [MAGICAL PROPERTY GOES HERE]then
wscript.echo "YEY"
end if
next
Any help would be appreciated.
Thanks,
MAtt