Topic "can't synchronize both while @echo off"

Author Message
Szarky

Guest


Hello,
I created 2 sripts
first:
Code:
@echo off
winscp.com /script=sync.bat

second:
Code:
@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
Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
This has nothing to do with @echo off.

Use winscp.exe instead of winscp.com.

See https://winscp.net/eng/docs/executables
Deon

Guest


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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25015
Location: Prague, Czechia
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.
Advertisements

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!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License