Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect to a file server
Message
De
15/06/2007 13:48:47
 
 
À
14/06/2007 21:20:20
Hilmar Zonneveld
Independent Consultant
Cochabamba, Bolivie
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
OS:
Windows XP
Divers
Thread ID:
01233350
Message ID:
01233572
Vues:
8
>One of my clients wants his users to connect to a file server. How can this be automated from VFP? Let's assume that the name and password are already loaded from a local table into variables; we don't want the user to be asked for the login and password.
>
>TIA,
>
>Hilmar.
oNet = CreateObject("WScript.Network")
oNet.MapNetworkDrive("z:","\\server\share",,"domain\userid","password")

oNet.RemoveNetworkDrive("z:")
Fred
Microsoft Visual FoxPro MVP

foxcentral.net
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform