Easy Pass to Secure File Transfer
TM
»User: »Password:   Remember Me? 
Sysax Product Forums / Sysax FTP Automation / General Discussion / listcompare syntax and result
Posted:  18 May 2011 18:23
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
I figured out the ftpdelete
Posted:  24 Jun 2014 22:54
Scott, Can you post your solution for the FTPDelete?
Posted:  24 Jun 2014 23:21
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
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
 

Copyright © 2008 Codeorigin, LLC - All Rights Reserved.
XML RSS 2.0 XML Atom 1.0