Click here to Skip to main content
15,895,799 members
Please Sign up or sign in to vote.
4.00/5 (1 vote)
See more:
Hi,
How can i copy a folder from a remote location, for which the username and password are known, to one's own PC ?
Posted

1.If your folder is in your local network (LAN), the folder is shared in the LAN in the way that you have access from your computer to it, you could access it by using relative URL to the remote computer folder like: "\\RemoteFolder\\SomeFile.txt".

See details here about how to copy the entire folder: MSDN Link[^]

2.If the folder is over the internet, or is in your LAN and the folder is not shared for your user, you cannot access it at all and you should use a local service installed on remote computer that have access to that folder in order to copy its content.
 
Share this answer
 
v2
Comments
sovit agarwal 27-May-14 7:31am    
Thanks Raul for the answer...
But i have question here...If the folder is not shared on the LAN cant i use the credentials to log into the system and fetch the folder ?
Raul Iloc 27-May-14 7:40am    
As I know you cannot do this!
sovit agarwal 27-May-14 7:43am    
What about copying an entire folder from remote PC to local PC?
U just mentioned about a file in your first point//
Raul Iloc 28-May-14 0:54am    
I have mentioned the file because you have to copy all files from the folder like in the case of copying the folder from the same computer. See the link in my solution update!
 
Share this answer
 
Comments
sovit agarwal 27-May-14 7:33am    
Hi, but this is e copy in one PC it itself...
I want it from a remote location to local PC

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