Posted: 2013-12-04 14:32
I use the following simple script to connect to a remote site, copy any files there to a local site and then delete the remote files.
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.
Location: Prague, Czechia
You can post new topics in this forum
And it's free!