Topic "Problems setting up automated synchronization"

Author Message


Hello Forum
I am having trouble setting up bat driven synchronization.
First off - I know I should post a log, but I am unable to get that to work

Here is my bat /script=synchronize.script /log=Sync.log /parameter %1 "/var/www/%~n1%~x1"

Here is my script

# Being intended for interactive session, we are not enabling batch mode
# Connect
open sftp://me:mypassword@
# Synchronize paths provided via environment variables
synchronize remote "%1%" "%2%"

behaviour -
cmd window pops up and immediately closes - no synchronization takes place
log file does not appear with in send to where the script lives
log file does not appear in parallel with dir I tried to syncrhonize
log file does not appear within the dir I tried to synchronize
log file does not appear at the drive root where I tried to syncronize

placing the log command after the params for the script does not change the behaviour

assistance is most welcome

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26890
Location: Prague, Czechia
Run the from cmd.exe console window to see the output.
Martin Prikryl

You can post new topics in this forum


What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License