Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Shell function
Message
 
À
22/05/2002 05:14:17
Information générale
Forum:
Visual Basic
Catégorie:
Fonctions API de Windows
Titre:
Divers
Thread ID:
00659791
Message ID:
00659794
Vues:
16
>My application need to call the 'net use' command in MS Window 2000 to
>map to my remote server. So, is there any way to
>know whether I had successfully map to my remote
>drive ? since shell function work asynchronously
>and I can't use the return value to indicate whether
>my mapping is successfully.

You can use API functions WNetAddConnection() or WNetAddConnection2() instead of "net use". These functions returns NO_ERROR or error code when connection cannot be established.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform