473,396 Members | 1,777 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

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

FTP'ing in c# app...

Hey,

There's a client requirement to have my application send some files to
another server on the same network through FTP.

All I need to do is connect to the provided server and port, with the
provided username and password, then upload some files in binary mode, then
disconnect.

Is there a way in .Net to do this?
Any help would be appreciated.

Thanks.
Daniel
Nov 16 '05 #1
8 1266
<"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk>>
wrote:
There's a client requirement to have my application send some files to
another server on the same network through FTP.

All I need to do is connect to the provided server and port, with the
provided username and password, then upload some files in binary mode, then
disconnect.

Is there a way in .Net to do this?
Any help would be appreciated.


I would suggest using Indy:

http://www.indyproject.org

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
Nov 16 '05 #2
Cheers Jon

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
<"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk>>
wrote:
There's a client requirement to have my application send some files to
another server on the same network through FTP.

All I need to do is connect to the provided server and port, with the
provided username and password, then upload some files in binary mode, then disconnect.

Is there a way in .Net to do this?
Any help would be appreciated.


I would suggest using Indy:

http://www.indyproject.org

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #3
It should also be noted that FTP support will be provided out of the box
in the next release of .NET (there is an FtpWebRequest and FtpWebResponse
class I believe).

Hope this helps.

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

"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk> wrote in
message news:ut**************@TK2MSFTNGP12.phx.gbl...
Cheers Jon

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
<"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk>>
wrote:
There's a client requirement to have my application send some files to
another server on the same network through FTP.

All I need to do is connect to the provided server and port, with the
provided username and password, then upload some files in binary mode, then disconnect.

Is there a way in .Net to do this?
Any help would be appreciated.


I would suggest using Indy:

http://www.indyproject.org

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too


Nov 16 '05 #4
"Nicholas Paldino [.NET/C# MVP]" <mv*@spam.guard.caspershouse.com> wrote
in news:eQ*************@TK2MSFTNGP10.phx.gbl:
It should also be noted that FTP support will be provided out of the
in the next release of .NET (there is an FtpWebRequest and
FtpWebResponse class I believe).


Thats in the next release which is a ways off - its also likely to be quite
basic as the other support is in .NET now.
--
Chad Z. Hower (a.k.a. Kudzu) - http://www.hower.org/Kudzu/
"Programming is an art form that fights back"

Make your ASP.NET applications run faster
http://www.atozed.com/IntraWeb/
Nov 16 '05 #5
Jon Skeet [C# MVP] <sk***@pobox.com> wrote in
news:MP************************@msnews.microsoft.c om:
http://www.indyproject.org


There's even an FTP demo of it here:
http://www.codeproject.com/dotnet/FTPWinFormClient.asp

--
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/
Nov 16 '05 #6
I tried out the Indy and for the first time since I can remember, I read a
little bit of documentation, plugged in what I thought looked to make sense
when compared with some of the intro help stuff, and it worked no problem!

Excellent! ;o)

"Jon Skeet [C# MVP]" <sk***@pobox.com> wrote in message
news:MP************************@msnews.microsoft.c om...
<"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk>>
wrote:
There's a client requirement to have my application send some files to
another server on the same network through FTP.

All I need to do is connect to the provided server and port, with the
provided username and password, then upload some files in binary mode, then disconnect.

Is there a way in .Net to do this?
Any help would be appreciated.


I would suggest using Indy:

http://www.indyproject.org

--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too

Nov 16 '05 #7
"Daniel Bass" <DanielBass TAKE at OUT CAPS WORDS Postmaster.co.uk> wrote in
news:eU**************@TK2MSFTNGP12.phx.gbl:
I tried out the Indy and for the first time since I can remember, I read a
little bit of documentation, plugged in what I thought looked to make sense
when compared with some of the intro help stuff, and it worked no problem!

Excellent! ;o)


Very cool. :)
--
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/
Nov 16 '05 #8
And yet another (so comparison is possible ;)

http://www.ondotnet.com/pub/a/dotnet...net.htm?page=1

Yanick

Chad Z. Hower aka Kudzu wrote:
Jon Skeet [C# MVP] <sk***@pobox.com> wrote in
news:MP************************@msnews.microsoft.c om:
http://www.indyproject.org

There's even an FTP demo of it here:
http://www.codeproject.com/dotnet/FTPWinFormClient.asp

--
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/

Nov 16 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: xxx | last post by:
Hello, My php-script makes directories and puts files in it. But via FTP'ing, I can't delete those files anymore. Also, I need to put a whole bunch of existing files into these, 'made-by-php'...
1
by: | last post by:
Hi- I was curious if anyone has had good luck using one of the commercial .NET FTP client libraries to perform massive LIST commands. I have tried various free libraries with no/little success,...
2
by: C | last post by:
Hi, Does anyone know what class library I need to use for FTP'ing files from within ASP.Net I need to FTP a file to a server and take the file back down after a period of time. This whole...
2
by: iforsyth | last post by:
I have an application that sweeps through directories and looks for FTP'd files to copy to a server location. Is there a good way to detect whether a file is currently in use, e.g. someone is...
4
by: Jon Weston | last post by:
Hi all. I'm trying to use the Internet Transfer Control in an Access03 database to upload a file using FTP. It's not giving me any errors but is completely failing to upload the file. Here's the...
3
by: Matthew Crouch | last post by:
I just used FileZilla (on windows) to download a site for testing in IE, and it seems a couple of newline characters are added to all the php scripts. This isn't much of a problem until I get to...
5
by: AlunDavies | last post by:
Hi, I'm working on a system that recurses through a given directory, ftp-ing all the contents up to our FTP server. I've got the recursion bit working fine, but whenever I try to upload a file I...
1
by: Cirene | last post by:
Using VB.NET (latest version) I want to log onto an FTP server and check for the existance of 10 files in 3 different directories. I would prefer to do this over 1 live connection. Anyone have...
7
by: =?Utf-8?B?SmFzb24=?= | last post by:
Hello, can someone please suggest to me how I can keep my ftp connection from timing out after a large file download? I am using SSIS and I have tried multiple ways of ftp'ing the files in my...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.