Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Attaching to a Shared NT W/S resource
Message
 
 
À
26/04/2001 04:58:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00499661
Message ID:
00500091
Vues:
19
>Larry
>
>I have tried it out and have been unsuccessful, I have got the right username and password. I am trying:
>
>MapNetworkDrive("z:","\\wmobil303750\c$",.F.,cUsername,cPassword)
>
>Any ideas? It keeps reporting Access Denied and after 3 times it locks MY own account!!
>
>Sounds like it is not passing the admin user, and using mine instead.
>
>Thanks
>Kev

Kev,
Is the machine being specified a domain machine? If so, you may have to add the domain designation with the user name.

Ex.
cusername = "mydomain\myusername"
onetwork.MapNetworkDrive("z:","\\wmobil303750\c$",.F.,cUsername,cPassword)

Otherwise, the machine looks at its local user accounts and that could mess it up.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform