Posted: 2011-05-17 23:27
Hello, I am new to WinSCP scripting.
Basically I have a script that syncs a local folder with one on a server:
option batch off
option confirm off
option include "*.jpg; *.txt"
synchronize local -criteria=time "%1%" "%2%"
My issue is that I only want WinSCP to download the JPG IF there is an associating txt file with the same name. For example if there is a JPG called hello.jpg then it should only download if the file hello.txt exists. How do I do this? Would I need to rely on custom code for the sync instead of the synchronize command?
Location: Prague, Czechia
Yes, you would have to.
See some examples:
You can post new topics in this forum
And it's free!