How do I retrieve the volume label from a CD in .NET?

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

It seems like this should be in one of the .NET framework classes, but I haven't been able to find it. All I want to do is retrieve the volume label from a CD using C#. If anyone could kick me in the right direction I would greatly appreciate it. Thanks.
 
Look at the system management classes, they use WMI, from there yo can get the volume label plus other information.
 
Thanks Glenn. I was able to obtain it using the ManagementObject, specifically the GetText method and then parse for the VolumeName field.
 
Back
Top