Topic "Cmd-file: Nothing to synchronize."

Author Message
timteka
[View user's profile]
Donor
Joined: 2009-04-06
Posts: 2
Location: Moscow
Sorry, Martin, can't find out how to make cmd workable.
Can successfully run the following command from cmd:
Code:
D:\Dropbox\$SOFT\WinSCP\WinSCP.com /log=test.log /command "open ftp://login:passwd@192.168.6.3" "option echo off" "option batch continue" "synchronize local  "" O:\RecordedFiles"" ""/RecordedFiles""" "exit"


Putting this inside black sync.cmd and running produces:
Code:
Connecting to 192.168.6.3 ...
Connected with 192.168.6.3. Waiting for welcome mess
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] login@192.168.6.3
echo            off
batch           continue
Comparing...
Local ' O:\RecordedFiles' <= Remote '/RecordedFiles'
Nothing to synchronize.
Advertisements
kvlt

Guest


I am having the same issue as well. I don't want to hijack your thread, just providing more info in hopes we can both get a solution.

Running
WinSCP.exe /script=Sync.txt /log=scplog.txt
from a scheduled task I get a message in the log saying nothing to synchronize. But if I take that exact line and paste it in a cmd prompt it works without issue. I am on the same user as what I have the scheduled task set to run under.

My sync.txt file contains the following:
option batch on
option confirm off
open session
synchronize remote \\uncpath\syncdir /var/www/html/syncdir
close
exit
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
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 may email it to me. You will find my address (if you log in) in my forum profile. Please include link back to this topic in your email. Also note in this topic that you have emailed the log.
kvlt
[View user's profile]

Joined: 2012-11-29
Posts: 1
I sent you an email with a log of the problem.
Guest




kvlt wrote:
I am having the same issue as well. I don't want to hijack your thread, just providing more info in hopes we can both get a solution.

Running
WinSCP.exe /script=Sync.txt /log=scplog.txt
from a scheduled task I get a message in the log saying nothing to synchronize. But if I take that exact line and paste it in a cmd prompt it works without issue. I am on the same user as what I have the scheduled task set to run under.

My sync.txt file contains the following:
option batch on
option confirm off
open session
synchronize remote \\uncpath\syncdir /var/www/html/syncdir
close
exit


I have exactly same issue except I am connecting to a sftp server. Is there any solution. Thanks
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Anonymous wrote:
I have exactly same issue except I am connecting to a sftp server. Is there any solution. Thanks

The solution for kvlt was that he was running the script in scheduler and the scheduler's system account did not have an access to the local folder.
If you use the most recent version of WinSCP, it triggers an error in such case. Older versions did not.
_________________
Martin Prikryl
Guest




prikryl wrote:
Anonymous wrote:
I have exactly same issue except I am connecting to a sftp server. Is there any solution. Thanks

The solution for kvlt was that he was running the script in scheduler and the scheduler's system account did not have an access to the local folder.
If you use the most recent version of WinSCP, it triggers an error in such case. Older versions did not.


Thank you so much. I just realized the account privilege issue. Everything works fine now. WinSCP is fantastic. Thanks.
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