You may want to have a script that synchronizes any local directory with a same-named subdirectory of fixed remote path, e.g.:
Such a script is particularly useful for integrating with Windows Explorer’s ‘Send To’ menu.
First create wrapper batch file to store the paths you want to synchronize into environment variables (change
/home/user/www/ to remote path root you want to synchronize against):
winscp.com /script=example.txt /parameter // %1 "/home/user/www/%~n1%~x1"
example.txt may look like:
# Being intended for interactive session, we are not enabling batch mode # Connect open mysession # Synchronize paths provided via environment variables synchronize remote "%1%" "%2%" # Exit WinSCP exit
Then you can make a shortcut to the batch file:
C:\Users\username\AppData\Roaming\Microsoft\Windows\SendTo, you can use Send To > Your Shortcut from context menu of any local directory.
Site design by Black Gate