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).
# 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!
How do you move the files? Using specific names or using a wildcard? Show us your script!
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?
Sorry, but that's a too broad question. What files are being created? Local or remote? What is the remote system? What protocol?
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: