Topic "Synchronize command doesn't work properly in Windows 7?"

Author Message
3K
[View user's profile]
Donor
Joined: 2012-01-20
Posts: 34
Location: Geneva
Hi,

I've created a simple script below in Windows XP. It synchronizes 2 xml files to my local drive. It works properly on XP but when I copied and run it to my Windows 7 computer, the result is different.

Normally, the command synchronize downloads only the new files, but when I run it on Windows 7, it always downloads all the file even it already exists and the file date is the same. I run it several times, normally on the second run, there should be no download, but again, it downloads the files, why?

I'm using WinSCP 5.0.7 in both computer.

Code:
option batch abort
option confirm off
open ftp://login:password@confsynch.itu.int
option transfer automatic
synchronize -filemask="*.xml | */" local "C:\test" "/test"
close
exit


You will see the logfile below that on the second run, it downloads again the 2 xml files.
synclog.txt (11.76 KB) [Download]

Description: (none)

Advertisements
Guest




Hi,

Additional information:

During testing, when I add the -criteria switch in the synchronize command, here are the results:

In Windows 7, these commands don't work but work in XP:

synchronize -criteria=time ...
synchronize -criteria=either ...
synchronize -criteria=both ...

These commands work on both Windows XP and 7:

synchronize -criteria=size ...
synchronize -criteria=none ...

Well, I can use size or none switch in order to work on both OS. But my question, none for me means nothing to check but it's working. Is it correct?

Thank you. Smile
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Please read FAQ:
http://winscp.net/eng/docs/faq_synchronize
_________________
Martin Prikryl
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
Anonymous wrote:
Well, I can use size or none switch in order to work on both OS. But my question, none for me means nothing to check but it's working. Is it correct?

The "none" means that it will only synchronize files that does not exist on the other side.
_________________
Martin Prikryl
Guest




Thank you. Smile

I will be using the command below so it will work both in Windows XP and 7. If I don't include the -criteria switch, it only works on XP.

synchronize -criteria=size ...

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