Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Verify for drive availability
Message
De
13/02/2009 12:14:58
 
 
À
13/02/2009 04:32:08
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:
01381608
Vues:
33
>If you know the IP address you could ping that with a short timeout. Wouldn't confirm that the drive was ready but....
>
using System.Net.NetworkInformation;
>PingReply response  = new Ping().Send("100.100.100.100", 5);
>bool worked = response.Status == IPStatus.Success;
5ms was more than enough on my network,

Thanks, I might add such a method in my DriveInformation() class to benefit of such approach.
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