FTPDELFILE

Hints, tips and tricks for newbies

Moderators: Dorian (MJT support), JRL

Post Reply
icwicks
Newbie
Posts: 7
Joined: Wed Apr 23, 2003 11:28 am

FTPDELFILE

Post by icwicks » Mon May 17, 2004 9:56 am

Can I use the FTP del file command to delete all files in a directory, e.g *.*

I have tried this already but it didn't work. It works on a single file.

Is this supposed to be possible?

Thanks in advance

User avatar
support
Automation Wizard
Posts: 1450
Joined: Sat Oct 19, 2002 4:38 pm
Location: London
Contact:

Post by support » Mon May 17, 2004 10:51 am

Hi,

No this is not possible. Use FTPGetDirList to get a list of the files and then use a loop with FTPDelFile to delete each one in turn.

This is precisely how ftp clients implement wild card functions.
MJT Net Support
[email protected]

Post Reply
cron
Sign up to our newsletter for free automation tips, tricks & discounts