How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
Go Back  Xtreme Visual Basic Talk > > > How to delete multiple files on an FTP using a command (maybe DELE?)


Reply
 
Thread Tools Display Modes
  #1  
Old 03-19-2002, 12:50 PM
Cyber_Boy Cyber_Boy is offline
Junior Contributor
 
Join Date: Jan 2002
Location: Somewhere on Earth.. near
Posts: 287
Default How to delete multiple files on an FTP using a command (maybe DELE?)


Im want to delete say 40 files on an ftp server,

and right now the method im using is sending 40 DELEs commands

> DELE FILE1.TXT
> DELE FILE2.TXT
> DELE FILE3.TXT
> DELE FILE4.TXT
> DELE FILE5.TXT
......
......

That is very impractical and slow. Is there a way to delete all the 40 files at once? say writing something like this

DELE FILE1.TXT; FILE2.TXT; FILE3.TXT etc???

thanks
__________________
So.. You think time is precious huh? Yeah you're right... and you've currently just wasted about 8 seconds of your "precious" time reading this stupid statement :-)
Reply With Quote
  #2  
Old 03-19-2002, 03:57 PM
ChiefRedBull's Avatar
ChiefRedBullHow to delete multiple files on an FTP using a command (maybe DELE?) ChiefRedBull is offline
ISearchGoogle

Retired Moderator
* Expert *
 
Join Date: May 2001
Location: england
Posts: 6,321
Default

You need to read the FTP RFC. Look here.

With very little searching I found this
Code:
5.3.1. FTP COMMANDS
         The following are the FTP commands:
            .... more commands here.....
            RNTO <SP> <pathname> <CRLF>
            ABOR <CRLF>
            DELE <SP> <pathname> <CRLF>
            RMD  <SP> <pathname> <CRLF>
            MKD  <SP> <pathname> <CRLF>
            .... more commands heres.....
which clearly indicates that you can only DELE one file at a time. You'll have to automate the process by sending multiple DELE commands. Sorry
__________________
Chuck Norris ordered a Big Mac at Burger King, and got one.
Reply With Quote
  #3  
Old 03-21-2002, 08:34 AM
Cyber_Boy Cyber_Boy is offline
Junior Contributor
 
Join Date: Jan 2002
Location: Somewhere on Earth.. near
Posts: 287
Default

but that is really impractical!

thanks for your help still.

have fun
__________________
So.. You think time is precious huh? Yeah you're right... and you've currently just wasted about 8 seconds of your "precious" time reading this stupid statement :-)
Reply With Quote
  #4  
Old 03-21-2002, 08:43 AM
Flyguy's Avatar
FlyguyHow to delete multiple files on an FTP using a command (maybe DELE?) Flyguy is offline
Lost Soul

Super Moderator
* Guru *
 
Join Date: May 2001
Location: Vorlon
Posts: 19,165
Default

Hey, it's a File Transfer Protocol, not a filesystem! You are lucky you can delete files with it.
Reply With Quote
  #5  
Old 03-21-2002, 08:45 AM
divil's Avatar
divilHow to delete multiple files on an FTP using a command (maybe DELE?) divil is offline
Funky Monkey

* Expert *
 
Join Date: Nov 2001
Location: England
Posts: 1,289
Default

Its a pretty good bet some FTP servers support wildcards in the DELE command. Why not try it? You could always make your program revert if it doesn't support it.
__________________
MVP, C#
Now you see why evil will always triumph - because good is dumb.
Windows Forms and WPF user interface controls
Reply With Quote
  #6  
Old 03-21-2002, 08:53 AM
Cyber_Boy Cyber_Boy is offline
Junior Contributor
 
Join Date: Jan 2002
Location: Somewhere on Earth.. near
Posts: 287
Default

well thats not my point about using wild cards

names do not have anything in common



well thanks for your help
i appreciate a lot

think ill have to leave it sending 40+ DELEs commands

c ya guyz
__________________
So.. You think time is precious huh? Yeah you're right... and you've currently just wasted about 8 seconds of your "precious" time reading this stupid statement :-)
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump

Advertisement:





Free Publications
The ASP.NET 2.0 Anthology
101 Essential Tips, Tricks & Hacks - Free 156 Page Preview. Learn the most practical features and best approaches for ASP.NET.
subscribe
Programmers Heaven C# School Book -Free 338 Page eBook
The Programmers Heaven C# School book covers the .NET framework and the C# language.
subscribe
Build Your Own ASP.NET 3.5 Web Site Using C# & VB, 3rd Edition - Free 219 Page Preview!
This comprehensive step-by-step guide will help get your database-driven ASP.NET web site up and running in no time..
subscribe
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?) How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
 
How to delete multiple files on an FTP using a command (maybe DELE?)
How to delete multiple files on an FTP using a command (maybe DELE?)
 
-->