Posted: 18 May 2011 18:23 | ||
Registered User Currently Offline |
Posts: 2 Join Date: May 2011 |
|
I need to confirm all the files were downloaded succesfully to local before deleting them on remote.
Prior to any downloading I do a ftpgetlist remote, @remote_list After downloading I do a ftpgetlist local, @local_list To do the confimation I've been attempting a listcompare with the object to see if they are identical using @identical, and or @largerlist. I've tried various syntaxes but without success If it is determine there are files that were not downloaded is there a means to download them only and or send a message to an enduser finally is this teh correct command to delete all files on the remote. I'm getting syntax error on it too. ftpdelete remote @remote_list; Thanks |
Posted: 18 May 2011 18:35 | ||
Registered User Currently Offline |
Posts: 2 Join Date: May 2011 |
|
I figured out the ftpdelete |
Posted: 24 Jun 2014 22:54 | ||
Registered User Currently Offline |
Posts: 3 Join Date: Sep 2013 |
|
Scott, Can you post your solution for the FTPDelete? |
Posted: 24 Jun 2014 23:21 | ||
Registered User Currently Offline |
Posts: 3 Join Date: Sep 2013 |
|
syntax and pass/fail message:
ftpdelete remote, file, ~remote_itemname1; if ftpresult eq success begin # Successfully delete file from remote server stringjoin ~delete_success_message, "Successfully deleted file ", ~remote_itemname1; print ~delete_success_message; end else begin # Failed to delete file from remote server stringjoin ~delete_error_message, "Failed to delete file ", ~remote_itemname1; print ~delete_error_message; end |
Posted: 18 Jul 2014 16:07 | ||
Registered User Currently Offline |
Posts: 43 Join Date: Jul 2013 |
|
Hi Zwilliams,
Thank you for your reply. If you have a different issue in the future, the Sysax support ticketing system is also available. Regards, Sysax support |