Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

skarabe

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!
martin

Re: [HELP NEEDED] Scheduled task sync not working

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.
Guest

[HELP NEEDED] Scheduled task sync not working

Hi
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:
c:\sync.bat

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

The ini holds:
[Configuration\CDCache]
user@host=*lots of data*

[SshHostKeys]
rsa2@22:host=*lots of data*

[Configuration\Interface]
[Configuration\Logging]
[etc...]
bla
bla

[Sessions\user@host]
HostName=myserver.com
UserName=user
PublicKeyFile=*path to key*
FSProtocol=0
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"
exit

Am I missing something obvious here? I'm no computer wiz, so please help me get this going.