[python-win32] How to determine CD-ROM or CD-R?

Tim Golden tim.golden at viacom-outdoor.co.uk
Wed Dec 8 16:27:08 CET 2004


[Qiangning Hong]
| How can my program find out the type of disc in my CD-RW 
| drive?  I want 
| my program behaves differently depend on the type: if it is a normal 
| CD-ROM, read data from it; if a recordable CD, burn data onto it.

If you're on Windows, I think WMI can do it. Check out the 
Win32_CDROMDrive class and its Capabilities attribute.

TJG

________________________________________________________________________
This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________


More information about the Python-win32 mailing list