Create remote directory


thrown an exception "Could not find part \\win_xp\c$"

How do I authenticate to \\win_xp server so I could create my remote directory "temp". I do have \\win_xp credentials to authenticate to give me access for remote share server. How can I program it using C#? I'll be running a windows service program to create remote directory.


Who is Participating?
bdetcheveryConnect With a Mentor Commented:
Check out this impersonation demo from thecodeproject :

You can impersonate a user with the correct credentials, and then running your code as the impersonated user.

Be careful, storing username/password info in a .NET executable as it may be decompiled and read by unscrupulous individuals.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.