Click here to Skip to main content
15,895,709 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I want to access a remote location to copy some files(.exe) into my local machine and i know the network credentials for the same. How can i do the same using C#?
P.S. The location is a shared location. The network credentials are needed if i am logged in as administrator and not with a domain name or else if it is a first time access.

Please help!!!Thanks :)
Posted
Comments
[no name] 3-Jun-14 7:19am    
http://www.codeproject.com/Questions/781055/How-can-one-automate-the-ftp-login-from-command-pr?arn=0
sovit agarwal 3-Jun-14 7:33am    
actually i figured out that i dont need FTP ....

1 solution

Here a nice article that answers your question.

A small C# Class for impersonating a User
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900