Topic "Skip all file - get command n batch file (command line)"

Author Message



"C:\WinSCP\" userid:password@server:22" /command "option confirm off" "get /testdir/*.txt logs\*" "exit"

Above command line is getting all files from server's testdir to local machines's logs folder. It works fine.
I want to skip all files if exists on local, currently it is overwriting.
If on server 1000 files, and on machine 900 files then need to download only 100 files.
Confirmation message remains to be off as it is script / batch process and no user intervation is requried,
so what is the switch or clause with get command to skip files if already exists.

[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26299
Location: Prague, Czechia
Use "synchronize local" instead of "get". See documentation.
Martin Prikryl

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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License