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

Advertisement

ToughCanny
Guest

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

Hi,

"C:\WinSCP\winscp.com" 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.

Thanks

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,253
Location:
Prague, Czechia

Re: Skip all file - get command n batch file (command line)

Use "synchronize local" instead of "get". See documentation.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum