Delete files older than 30 days

Core FTP client questions and answers
Post Reply
likewise
Posts: 1
Joined: Tue Apr 01, 2008 4:23 pm

Delete files older than 30 days

Post by likewise »

I'm new to this so I'd like to ask for a little assistance before I blow away a bunch of files on a remote ftp folder.

I've found what I think will do the trick in the form of the -purge parameter.

I'm just not sure of the full syntax.

I'd like to delete all files older than 30 days from a site called 'RemoPickup' from a folder called outbound, log the transaction and get a listing of what's in the output folder after the purge.

What I think should work is this:
coreftp.exe -s -site RemoPickup -purge /xx/site1/outbound/*.* 30 -log c:\ftps\xfer.Log -dira /xx/site1/outbound/ c:\ftps\outDir.txt

Any assistance will be greatly appreciated.

Best regards.
jacken
Posts: 11
Joined: Wed May 14, 2008 11:53 pm

Post by jacken »

How do you use the script -sc? Can you provide an example of the syntex?

Thanks.
Post Reply