Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
WinSCP Folder synchronizer
@echo off
echo --- %date% - %time%: WinSCP Sync startup
echo option batch continue > "C:\var\scpsync-photo.tmp"
echo option confirm off >> "C:\var\scpsync-photo.tmp"
echo open michael@ds01 >> "C:\var\scpsync-photo.tmp"
echo synchronize local "C:\Users\Michael\Pictures" "/home/photo" -delete >> "C:\var\scpsync-photo.tmp"
echo keepuptodate "C:\Users\Michael\Pictures" "/home/photo" -delete >> "C:\var\scpsync-photo.tmp"
"C:\Program Files (x86)\WinSCP\" /script="C:\var\scpsync-photo.tmp"
echo --- %date% - %time%: WinSCP shutdown
del "C:\var\scpsync-photo.tmp"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.