Best unofficial Apache Server developers community
Username
Forgot password?
Sign in with Twitter account
Sign in with Facebook account

C#.NET: FTP Several Files

1

103 views

Hi, I have what would seem like a common problem, but I cannot find an appropriate solution on any forums. I need to FTP an entire directory structure using .NET. I have found several code examples all of which show how you can FTP a single file by creating an FtpWebRequest object. Unfortunately, there is no information on how to deal with several files. Do I simply create a FtpWebRequest object for every single file? Any help would be appreciated. Thanks

asked January 9, 2011 8:00 pm CST
posted via StackOverflow

2 Answers

0
 

If there's a shorter way, I don't know what it is.

I wrote my code to handle each file one by one. If you are dealing with entire directory structures, that would entail processing each directory one by one as well.

answered January 9, 2011 8:23 pm CST
0
 

You can always call a new Process with a command like using for example WinSCP (open source FTP client) http://winscp.net/eng/docs/start

Perhaps call the synchronize operation: http://winscp.net/eng/docs/script_commands#synchronize

answered January 17, 2011 3:18 pm CST

Your answer

Join with account you already have


Sign in with Twitter account
Sign in with Facebook account
Sign in with Google Friend Connect

Preview
Similar questions
Php including files
January 2, 2011
View .apk files
January 7, 2011
Upload files with Apache
December 29, 2010