Automate FTP download/delete

  • Thread starter Thread starter Mark
  • Start date Start date
M

Mark

Here is what I am hoping to accomplish:
1. Connect to FTP server - I can do this.
2. Download file contained in the directory that I connect to.
3. Delete file contained on the ftp server.
4. Repeat steps 2 and 3 until all files are out of there.

Can anyone give me any direction on this? I know how to download a file if
I know the name of it before starting but I don't know how to download a
file and then delete that file from the server. This will ultimately be run
as a service so there should not be any user interaction. Any help would be
appreciated.

Thanks.
Mark
 
Mark said:
Here is what I am hoping to accomplish:
1. Connect to FTP server - I can do this.
2. Download file contained in the directory that I connect to.
3. Delete file contained on the ftp server.
4. Repeat steps 2 and 3 until all files are out of there.


Accessing FTP servers in .NET applications
<URL:http://dotnet.mvps.org/dotnet/faqs/?id=ftp>
 
Hi,

http://support.microsoft.com/default.aspx?scid=kb;en-us;832679

Ken
------------------
Here is what I am hoping to accomplish:
1. Connect to FTP server - I can do this.
2. Download file contained in the directory that I connect to.
3. Delete file contained on the ftp server.
4. Repeat steps 2 and 3 until all files are out of there.

Can anyone give me any direction on this? I know how to download a file if
I know the name of it before starting but I don't know how to download a
file and then delete that file from the server. This will ultimately be run
as a service so there should not be any user interaction. Any help would be
appreciated.

Thanks.
Mark
 

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

Similar Threads


Back
Top