Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
3.8k views
in .NET FTP by (220 points)
Hello,

At first i want to tell this component is really great for .Net users !! :)

I would like upload to a remote server all the files of a whole directory and his subdirectories... i use the free edtFTP, i know i have to make a loop on all files and subdirectories, but i'm a a true beginner in .Net and i don't know how make it... Anyone could help me ? I use VB.Net, but i don't know how make a loop for upload all this files... :(

I will be really happy if anyone could give me an example of code for make it !

Best regards,
Doots

4 Answers

0 votes
by
Hello,

At first i want to tell this component is really great for .Net users !! :)

I would like upload to a remote server all the files of a whole directory and his subdirectories... i use the free edtFTP, i know i have to make a loop on all files and subdirectories, but i'm a a true beginner in .Net and i don't know how make it... Anyone could help me ? I use VB.Net, but i don't know how make a loop for upload all this files... :(

I will be really happy if anyone could give me an example of code for make it !

Best regards,
Doots


Hello Doots,

You could look at some code of a project of mine, it's downloadable from http://www.codeproject.com/dotnet/webscheduler.asp. My code does about the same thing, but for downloading. You might extract the code containing the resursvive method containing the loop, but it's really not that hard to code it yourself.

Good luck

David van Leerdam
0 votes
by (220 points)
Thank you so much David, i will explore your solution :) really thanks for you answered very quickly :).

Of course if anyone have another solution i'm always listenning, 2 ways is always better than only one ;).

:)
0 votes
by (162k points)
Since you asked, edtFTPnet/PRO has recursive functionality.

http://www.enterprisedt.com/products/ed ... rview.html

Thank you so much David, i will explore your solution :) really thanks for you answered very quickly :).

Of course if anyone have another solution i'm always listenning, 2 ways is always better than only one ;).

:)
0 votes
by (220 points)
Thanks :)

Categories

...