can't synchronize both while @echo off

Advertisement

Szarky
Guest

can't synchronize both while @echo off

Hello,
I created 2 sripts
first:
@echo off
winscp.com /script=sync.bat
second:
@echo off
open sftp://username:password@host.com
synchronize both c:\local /home/remote
exit

and crated task in scheduler to run first script every 10 minutes. Every 10 minutes i see prompt window hiding, propably from first script. but when I refresh remote folder-nothing changes.
I had to delete @echo off from second file to get this working properly, but this window is quite annoynig.
My OS is Windows 10 Edu

Reply with quote

Advertisement

Deon
Guest

synchronize more files

hi please help i have the same code and i was wondering if i could sync more than one at a time my text looks like this

open Mywebsite.com
synchronize remote "Z:\Backup\Business\WEB\Folder A\Folder B\" "/home/public_html/Folder A/Folder B/"
synchronize remote "Z:\Backup\Business\WEB\Folder C\Folder D\" "/home/public_html/Folder C/Folder D/"
exit

When i have the one like this

open Mywebsite.com
synchronize remote "Z:\Backup\Business\WEB\Folder A\Folder B\" "/home/public_html/Folder A/Folder B/"
exit

It works perfect but as soon as i add more only the first one keeps going through but not the second or third one

Thank you

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,392
Location:
Prague, Czechia

Re: synchronize more files

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

Advertisement

You can post new topics in this forum