Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Connect to a file server
Message
 
À
15/06/2007 15:48:26
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:
01233664
Vues:
10
>>>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:")
>>
>
>This looks promising; I'll tell my client to try it out.
>
>Do you know how to connect to a UNC path without mapping it to a drive letter?

Hi Hilmar.

Is it the case that you don't want the user to be able to see and access the mapped drive letter?
If so, you could "impersonate" it from within the application.

Abraços.
Ivan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform