Example: Dim found, boolean START: FTPFileDelete( "ftp.com", "myid", "mypassword", "\\data\\acct.bak" ) FTPFileExists( "ftp.com", "myid", "mypassword", "\\data\\acct_dat", found ) If( found, DO_WAIT, SUCCESS ) DO_WAIT: Wait( 30 ) GoTo( START ) SUCCESS: ... continue after the file is deleted .... Make sure to set job "ignore errors" property. : I have to trap the FTPDeleteFile command error because the remote file may be : open when a try to detele it, in that case I want retry to delete again : the file after waiting x second
|