By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,404 Members | 1,945 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,404 IT Pros & Developers. It's quick & easy.

FTP communication

P: n/a
Hi all,

I need to transfer data via FTP from withing my .NET console application.
In VC++ there is the CFtpConnection class to handle the FTP communication.

Does anybody know how to handle if from .NET?
Nov 22 '05 #1
Share this Question
Share on Google+
10 Replies


P: n/a
Cor
Hi Mircea,

As far as I know do you have the same as in C++ and is there no complete
managed code for FTP. (You have to use the API calls and embed those in your
program)

Cor

I need to transfer data via FTP from withing my .NET console application.
In VC++ there is the CFtpConnection class to handle the FTP

communication.
Nov 22 '05 #2

P: n/a
> As far as I know do you have the same as in C++ and is there no complete
managed code for FTP. (You have to use the API calls and embed those in your program)


http://www.indyproject.org/indy.html contains a full FTP component. Its 100%
managed code, and also free.
Nov 22 '05 #3

P: n/a
The WebRequest can be used to provide FTP communication.
http://support.microsoft.com/default...b;EN-US;812409

Rob Zelt
http://www.robzelt.com/blog

"Mircea Pleteriu" <mp*******@asp-gmbh.de> wrote in message
news:OO**************@TK2MSFTNGP11.phx.gbl...
Hi all,

I need to transfer data via FTP from withing my .NET console application.
In VC++ there is the CFtpConnection class to handle the FTP communication.
Does anybody know how to handle if from .NET?

Nov 22 '05 #4

P: n/a
Cor
Hi Chad,

I saw this before is it source, and then what source?
I could not find it on the side.

I could not find until now any FTP dotNet components, but that can be my
fault of course.

(I have written myself of course a FTP program with all API calls in a
managed code program, but that is not full managed code in my opinion.)

Cor
Nov 22 '05 #5

P: n/a
"Cor" <no*@non.com> wrote in message
news:uF****************@TK2MSFTNGP09.phx.gbl...
I saw this before is it source, and then what source?


Its an assembly, just download and add a reference.

The dot net page lists what its written in with links to source if you want
that too. Its Delphi.net, but with .net it doesnt matter. And assembly is an
assembly.

Nov 22 '05 #6

P: n/a
"Rob Zelt" <ro*****@robzelt.com> wrote in message
news:uT**************@TK2MSFTNGP12.phx.gbl...
The WebRequest can be used to provide FTP communication.
http://support.microsoft.com/default...b;EN-US;812409


Doesnt this only give you basic downloads though by URL? No uploads, no
directory listing, no file parsing, etc..?
Nov 22 '05 #7

P: n/a
Cor
Hi Rob,

I thought I had seen it but could not find it anymore, and thought I had
dreamed it.

I try it.

Thanks

Cor
Nov 22 '05 #8

P: n/a
Mircea,
In addition to the others comments.

Matthew MacDonald's book "Microsoft Visual Basic >NET Programmer's Cookbook"
from MS Press includes a topic that discusses how to write an FtpClient
similar to the KB article that Rob posted.

Hope this helps
Jay

"Mircea Pleteriu" <mp*******@asp-gmbh.de> wrote in message
news:OO**************@TK2MSFTNGP11.phx.gbl...
Hi all,

I need to transfer data via FTP from withing my .NET console application.
In VC++ there is the CFtpConnection class to handle the FTP communication.
Does anybody know how to handle if from .NET?

Nov 22 '05 #9

P: n/a
Here's another example that shows uploading as well.
http://www.gotdotnet.com/userfiles/Feroze/ftpclient.zip

The book "Professional .NET Network Programming" (originally from WROX) from
APress! has a complete example of implementing and FtpWebRequest Class.

Rob Zelt
http://www.robzelt.com/blog
"Chad Z. Hower aka Kudzu" <cp**@hower.org> wrote in message
news:eM****************@TK2MSFTNGP09.phx.gbl...
"Rob Zelt" <ro*****@robzelt.com> wrote in message
news:uT**************@TK2MSFTNGP12.phx.gbl...
The WebRequest can be used to provide FTP communication.
http://support.microsoft.com/default...b;EN-US;812409


Doesnt this only give you basic downloads though by URL? No uploads, no
directory listing, no file parsing, etc..?

Nov 22 '05 #10

P: n/a
"Rob Zelt" <ro*****@robzelt.com> wrote in message
news:uS**************@TK2MSFTNGP12.phx.gbl...
Here's another example that shows uploading as well.
http://www.gotdotnet.com/userfiles/Feroze/ftpclient.zip


Ok. Download and upload. :)

Does it support file lists, list parsing, or any of the other FTP commands?
Its just strict URL based FTP no?
Nov 22 '05 #11

This discussion thread is closed

Replies have been disabled for this discussion.