Directory.GetLogicalDrives drive name?

  • Thread starter Thread starter Dean Slindee
  • Start date Start date
D

Dean Slindee

Once you've gotten a list of logical drives with
Directory.GetLogicalDrives, how would you get the name associated with that
drive?

Thanks,
Dean Slindee
 
* "Dean Slindee said:
Once you've gotten a list of logical drives with
Directory.GetLogicalDrives, how would you get the name associated with that
drive?

\\\
MessageBox.Show(Dir("C:\", FileAttribute.Volume))
///
 
Thanks Herfried, that works for me.

Any idea how Windows Explorer determines the type of physical drive type
(like "DVD Drive" vs "CD Drive") to assign the node text when there is no
media in the drive?

Dean Slindee
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top