Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO

ldelete wildcard

0 votes
26 views
asked Sep 20 in CompleteFTP by Andrew (140 points)
Whats the best way to delete a local file after uploaded? I can use the ldelete function on static names but will not work with a wildcard (*). I have a date in the name of my upload file.

Should I use a batch file and delete through dos? If so how do you sequentially run a batch event after an ftp event.
commented Sep 20 by support2 (144,210 points)
Do you mean you want to delete a file that is on the server that has been uploaded elsewhere?
commented Sep 20 by Andrew (140 points)
Yes, I would like to delete the file locally which was just uploaded. So it doesn't get resent by mistake.
commented Sep 20 by support2 (144,210 points)
How was it uploaded?
commented Sep 20 by Andrew (140 points)
I am using an ftp event. Below are the main points modified for web viewing.
I tried "ldelete Certifications*.csv" after the close and it fails with an unrecognized command error.

set localdir=C:\outbound
open
cd /DEV
mput Certifications*.csv

close
commented Sep 20 by support2 (144,210 points)
What's the event?
commented Sep 20 by Andrew (140 points)
Its an FTP Script event.
commented Sep 20 by support2 (144,210 points)
Which event? If it is a file upload event (for example), then it gets triggered for every file and you can get the filename from a macro.
commented Sep 20 by Andrew (140 points)
I am using a scheduled event.
commented Sep 20 by support2 (144,210 points)
OK. You'll need to use JSS if you want better control (Javascript)

http://enterprisedt.com/products/completeftp/doc/guide/jssapi/index.html

Please log in or register to answer this question.

...