Click here to Skip to main content
15,895,370 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How does one deposit files into a remote directory using c#?
Posted

Depends on how "remote" it is: if it's on the same LAN, then you can just access the share and (assuming you have the requisite permissions) write the files: http://stackoverflow.com/questions/295538/how-to-provide-user-name-and-password-when-connecting-to-a-network-share/1197430#1197430[^]

If it's an internet based depository, then your best solution is probably FTP: Simple C# FTP Class[^]
 
Share this answer
 
Where are you getting the files from?

Can you not just do a File.Copy(@"C:\your_source_file.txt",@"\\server\share_name\your_remote_file_name.txt");

of File.Move(source,destination);
 
Share this answer
 
v2

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