471,605 Members | 1,459 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,605 software developers and data experts.

C# FTP using .NET 2.0

Hi,

Does anyone have any examples/tutorials of FTP functionality using .NET 2.0?

I want to connect to the server, get a list of files and download/upload all
in C#.

Can someone help?

Thanks

Tim
Feb 10 '06 #1
2 1398
Tim,

You might want to check out the documentation for the FtpWebRequest and
FtpWebResponse classes in the System.Net namespace. They should give you
what you are looking for, as well as some examples as well.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Tim Cowan" <ti******@sympatico.ca> wrote in message
news:OF*******************@news20.bellglobal.com.. .
Hi,

Does anyone have any examples/tutorials of FTP functionality using .NET
2.0?

I want to connect to the server, get a list of files and download/upload
all in C#.

Can someone help?

Thanks

Tim

Feb 10 '06 #2
"Tim Cowan" <ti******@sympatico.ca> wrote in message
news:OF*******************@news20.bellglobal.com.. .
Hi,

Does anyone have any examples/tutorials of FTP functionality using .NET
2.0?

I want to connect to the server, get a list of files and download/upload
all in C#.


I spent some time trying to figure out the new FTP classes in .NET 2.0.
This isn't exactly what you want but, it might help, there is C# source code
that uploads a file or downloads a file. However, these were written as
examples of Windows Workflow Activities so, if you don't have Windows
Workflow beta 2 installed, this code won't compile. You will still be able
to cut out the FTP stuff and paste it into your non-workflow code.

The C# source code is available at:

http://www.mvpsi.com/ftpactivities.html

John Vottero
Feb 13 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

5 posts views Thread by Enos Meroka | last post: by
3 posts views Thread by Mike L | last post: by
3 posts views Thread by xzzy | last post: by
14 posts views Thread by pmud | last post: by
8 posts views Thread by acb | last post: by
reply views Thread by Metal2You | last post: by
reply views Thread by Eugene Anthony | last post: by
6 posts views Thread by =?Utf-8?B?U2hhd24gU2VzbmE=?= | last post: by
1 post views Thread by XIAOLAOHU | last post: by
reply views Thread by leo001 | last post: by
reply views Thread by CCCYYYY | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.