Doing an FTP from .NET application

S

Sinex

Hi,
I have a windows application This guy monitors a directory on my PC
(using FileSystemWatcher). When any file is dropped into this directory, I
want the application to send that file(s) by FTP to an FTP server. What are
the classes that I should use?
 
A

Adam

The .NET Framework does not have a native FTP class, but there are many
thrid-party FTP libraries available that can do what you need. I would
do a search on Google for ".NET FTP class"
 
M

Mark Rae

I have a windows application This guy monitors a directory on my PC
(using FileSystemWatcher). When any file is dropped into this directory, I
want the application to send that file(s) by FTP to an FTP server. What
are
the classes that I should use?

As Adam has mentioned, there's no native FTP support in v1.x of the
Framework (though there is in v2.0).

I use this: http://www.chilkatsoft.com/ftp-dotnet.asp
 
C

Chad Z. Hower aka Kudzu

Cor Ligthert said:

Thanks for remembering Indy, which BTW is open source and free. :)

But Indy is not just me, I just happen to be the verbal on on these forums
about it. Indy is actually develoeped by a team of about 40 developers and
has been around for nearly 10 years. :) I cant take credit for what is really
the work of a dedicated team of volunteers.



--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Develop ASP.NET applications easier and in less time:
http://www.atozed.com/IntraWeb/
 
P

Peter Wone

If you just want to fetch files from an FTP server I suspect that WebClient
will do it. Maybe not, I haven't checked.

If you want to serve FTP then read the RFC
http://www.w3.org/Protocols/rfc959/ and implement it yourself.

I wrote a dotnet replacement for the largely useless MailMessage/SmptServer
classes and threw in the funcionality of MimeOLE (converts HTML with linked
resources into a mime encoded email with embedded resources and remapped
links). That only took me two days, and FTP is hardly a complex protocol,
especially with the sexy sophisticated socket and stream classes dotnet
provides. You should be done by lunchtime!
 
C

Cor Ligthert

Peter,

Just an addition, AFAIK does the webclient not download from a FTP server.

Cor
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top