Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
807 views
in CompleteFTP by (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.
by (162k points)
Do you mean you want to delete a file that is on the server that has been uploaded elsewhere?
by (140 points)
Yes, I would like to delete the file locally which was just uploaded. So it doesn't get resent by mistake.
by (162k points)
How was it uploaded?
by (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
by (162k points)
What's the event?
by (140 points)
Its an FTP Script event.
by (162k 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.
by (140 points)
I am using a scheduled event.
by (162k 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.

Categories

...