Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Programmatically Set / Unset Network Shares
Message
De
25/09/2004 05:58:42
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00945960
Message ID:
00945966
Vues:
26
Hi Jojo,

if you have Windows Scripting Host installed, you can set a file share like this:
oNet = CREATEOBJECT("Wscript.Network")
oNet.MapNetworkDrive("V:", "\\Server\Volume\dir", .F., "UserName", "Pasword")
to disconnect:
oNet = CREATEOBJECT("Wscript.Network")
oNet.RemoveNetworkDrive('V:')
>Does anybody can share a code that can programmatically set/unset file shares in an intranet? Or anybody can provide a link where i can read some information.
>
>Any suggestion for books on API/Socket Programming?
>
>TIA.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform