For Programmers: Free Programming Magazines  


Home > Archive > C# > May 2005 > Volume label









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Volume label
Dmitry Klymenko

2005-05-28, 8:57 am

Do exists a way to detect a volume label of a disk?
I've found the way to do this using WMI (System.Management) or winapi function. The second solution is principal non-portable in future, the first one require service WMI to work on client (for sure it's not a guarantee to be allways running). I do not want to include in my application logic, that will attempt to start that service before determining logical drive volume label.

If no way to read volume label - I'll try a combination of both methods, but the most question is why is this so? Does other platforms (not MS) do not operate (at informative level) with volume label?

Thanks
Dmitry Klymenko
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com