Topic "[HELP NEEDED] Scheduled task sync not working"

Author Message

For some reason I cannot get the synchronization working. When I run the task it just gives me a quick flicker and then nothing - no log, nothing.. I have tried following the FAQ and this is my setup (below). If I add user@host in the command line, the script will run fine manually, but still nothing when I run it through the scheduler.

Task is pointing at:

sync.bat looks like this:
winscp.exe /ini=user@host.ini /script=user@host.txt /log=user@host.log

The ini holds:
user@host=*lots of data*

rsa2@22:host=*lots of data*


PublicKeyFile=*path to key*
RemoteDirectory=*remote dir*

script.txt holds:
option batch continue
option confirm off
option synchdelete on
option transfer automatic
synchronize remote "local dir" "remote dir"
synchronize both "another local dir" "another remote dir"

Am I missing something obvious here? I'm no computer wiz, so please help me get this going.
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24757
Location: Prague, Czechia
First hint: Command line refers to user@host.txt, while in the post you mention script.txt.
Second hint: Run the script from console window (cmd.exe), so that the output does not disappear and you can see any possible error message.
Martin Prikryl
[View user's profile]

Joined: 2008-03-25
Posts: 4
Location: Lund, SE
Hi prikryl
Thanks for the reply

I managed to get it working. What I had to do was to create a .bat file which calls the other .bat holding the winscp command. Really weird..

Maybe a path issue or something. Anyhow, It's working OK now!

You can post new topics in this forum

Search Site

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