Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Verify for drive availability
Message
From
12/02/2009 20:37:14
 
 
To
12/02/2009 09:34:15
Timothy Bryan
Sharpline Consultants
Conroe, Texas, United States
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Environment versions
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web
Miscellaneous
Thread ID:
01381168
Message ID:
01381476
Views:
27
>You should be able to find them all with this: Sorry it is C#
>
>ArrayList availableDrives = new ArrayList();
>string [] drives = Environment.GetLogicalDrives();
>foreach(string drive in drives)
>{
>     // Check each drive for whatever you want here
>     if (what I want is true)
>          availableDrives.Add(drive);
>}
>
Yes, this is correct. But, I start with a UNC and that makes it extremely difficult to find its related drive.
Michel Fournier
Level Extreme Inc.
Designer, architect, owner of the Level Extreme Platform
Subscribe to the site at https://www.levelextreme.com/Home/DataEntry?Activator=55&NoStore=303
Subscription benefits https://www.levelextreme.com/Home/ViewPage?Activator=7&ID=52
Previous
Reply
Map
View

Click here to load this message in the networking platform