Hi folks,
I've been playing around with the synchronization feature of WinSCP. The -preview options especially is very helpfull for me as i'd like to do a -preview to look for updates, then prompt the user if they wish to update files (in a simplified "Auto Updater") with a list of changed files.
However i notice a great difference in speed between issuing a synch preview from GUI, and when performed via scripting, and i'd love some input on how to recreate the results i see when using the GUI.
Starting the GUI with the following command:
C:\Users\MyUser>"C:\Program Files (x86)\WinSCP\WinSCP.exe" ftp://Update:@localhost/ /synchronize "C:\LocalFolder" "/FtpFolder" -preview
Then selecting "Local" and ticking off for both comparison criteria completes the operation in less than 7 seconds.
But the below script command completes runs the same operation at more than 2 minutes.
C:\Users\MyUser>"C:\Program Files (x86)\WinSCP\WinSCP.com" ftp://Update:@localhost/ /command "synchronize local C:\LocalFolder/FtpFolder-preview -transfer=binary -criteria=both"
No settings are changed with scripting or through the GUI, and should be default. Could anyone enlighten me how the GUI option can run so much faster?