PC Review


Reply
Thread Tools Rate Thread

Directory.GetLogicalDrives drive name?

 
 
Dean Slindee
Guest
Posts: n/a
 
      14th Aug 2004
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



 
Reply With Quote
 
 
 
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th Aug 2004
* "Dean Slindee" <(E-Mail Removed)> scripsit:
> 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))
///

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
Dean Slindee
Guest
Posts: n/a
 
      14th Aug 2004
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
"Herfried K. Wagner [MVP]" <hirf-spam-me-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> * "Dean Slindee" <(E-Mail Removed)> scripsit:
> > 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))
> ///
>
> --
> Herfried K. Wagner [MVP]
> <URL:http://dotnet.mvps.org/>



 
Reply With Quote
 
Herfried K. Wagner [MVP]
Guest
Posts: n/a
 
      14th Aug 2004
* "Dean Slindee" <(E-Mail Removed)> scripsit:
> 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?


<URL:http://dotnet.mvps.org/dotnet/faqs/downloads/setcddoorstatus.txt>

--
Herfried K. Wagner [MVP]
<URL:http://dotnet.mvps.org/>
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
GetLogicalDrives doesn't retrieve remote drives on Windows Vista =?Utf-8?B?THVpcyBBbnRvbmlvIFJvc2VsbG8gR2FyY2lh?= Microsoft VC .NET 9 2nd May 2007 06:31 PM
GetLogicalDrives function does not return mapped drives =?Utf-8?B?Uk1C?= Microsoft Dot NET Framework 2 8th Nov 2006 04:38 PM
How to ICO files on c-drive to a directory on f-drive? Norman Swartz Windows XP Help 1 5th Mar 2006 02:04 AM
Environment.GetLogicalDrives <- Distinguir entre los tipos Francisco del Valle Microsoft C# .NET 2 29th Mar 2005 04:03 PM
GetLogicalDrives - enumerating mapped network drives Charlie Orford Microsoft VC .NET 1 24th Mar 2004 08:01 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 02:13 AM.