Link to home
Start Free TrialLog in
Avatar of Bharat Guru
Bharat Guru

asked on

Using C# how to map a drive with userid and password

How to make a network map drive using c#
Avatar of Kimputer
Kimputer

just like you would use a cmd with net use \\server\share /user:johndoe password, you could use that information to start a process.
Another method would be to use the windows dlls responsible for network mapping (WNetAddConnection in mpr.dll)
Avatar of Bharat Guru

ASKER

pls post the sample code
ASKER CERTIFIED SOLUTION
Avatar of it_saige
it_saige
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
thanks