open sftp://user:password@ip address
get *.* c:\FTP\incoming\
Is there any error checking I can introduce to prevent the remote files being deleted if the transfer is unsuccessful, or will the rm command not execute and time out if the previous get line does not complete?
Any assistance would be greatly appreciated.