Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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

Use "synchronize local" instead of "get". See documentation.
ToughCanny

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