Topic "synchronize existing files only in scripting"

Author Message
henry3
[View user's profile]

Joined: 2016-03-20
Posts: 10
Is there an option when using the synchronize local command in a script to only synchronize existing files or directories? I am excluding the directories I didn't need using -filemask now.
Advertisements
henry3
[View user's profile]

Joined: 2016-03-20
Posts: 10
I think this might work:
Code:
/rawconfig SynchronizeOptions=4
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26462
Location: Prague, Czechia
/rawconfig Interface\SynchronizeParams=4

See https://winscp.net/eng/docs/rawconfig
henry3
[View user's profile]

Joined: 2016-03-20
Posts: 10
martin wrote:
/rawconfig Interface\SynchronizeParams=4


Thanks Martin, I was looking at the .ini file parameter, and thought they were the same. In a .ini file could I just have the one entry ?
[Configuration\Interface]
SynchronizeOptions=4

Henry
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26462
Location: Prague, Czechia
henry3 wrote:
Thanks Martin, I was looking at the .ini file parameter, and thought they were the same. In a .ini file could I just have the one

Yes. But why? Use the command-line /rawconfig parameter.
Advertisements

You can post new topics in this forum






Search

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