Created
April 19, 2014 05:49
-
-
Save m-wild/11075322 to your computer and use it in GitHub Desktop.
WinSCP Folder synchronizer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
pause | |
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\WinSCP.com" /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