Creation and moving of files takes place at same time???
Hi, I've got a curious question. What happens if the moving(remote to local servers) of the files takes place while when they were being created at that particular point of time(like 08:00, 09:00 and so on).
Will all those files be moved without fail. Or else some be missing.Or something else happens. Plz tell what happens?? :mrgreen:
Hi Martin, The xml files are being created in a folder of remote server. That remote server is a Linux server. And the protocol being used for that server is SFTP.
The thing is that, what happens if the files being created and also they being moved to a folder in local machine at the same time?
# Establish the connection
open sftp://(remote server details along with private key)
# Automatically abort script on errors
option batch abort
# Disable overwrite confirmations that conflict with the previous
option confirm off
# Force binary mode transfer
option transfer binary
get -delete -preservetime -resumesupport=off "/users/client/xml/*.xml" "E:\ImportedFiles\pdf\*.*"
exit
I'm using wildcard for selecting the files.The above is the script. Thanks!
WinSCP will retrieve list of all *.xml files in the directory.
It will then download and delete those.
If new files are created during the operation, WinSCP will not process those (as it is not aware of them).