>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.netAccumulate learning by study, understand what you learn by questioning. -- Mingjiao