Hi,
To do this with out doing any interop of your own you could use WMI. The
following example should get you started, it will list the CD/DVD drive
names in the output window.
ManagementObjectSearcher searcher = new
ManagementObjectSearcher("select Name from Win32_LogicalDisk where
DriveType=5");
foreach(ManagementObject obj in searcher.Get())
{
System.Diagnostics.Debug.WriteLine(obj["Name"]);
}
Hope this helps
--
Chris Taylor
http://dotnetjunkies.com/weblog/chris.taylor
Oldman said:
What is the best way in .NET to determine which drive is the CD-ROM?