Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verify for drive availability
Message
De
12/02/2009 20:37:14
 
 
À
12/02/2009 09:34:15
Timothy Bryan
Sharpline Consultants
Conroe, Texas, États-Unis
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Versions des environnements
Environment:
VB 9.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
Visual FoxPro
Application:
Web
Divers
Thread ID:
01381168
Message ID:
01381476
Vues:
28
>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
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform