문제

I need to synchronize files from remote to local directory using the following command

synchronize local "D:\ftp\OUT" /out

It works fine but is there a way to download files which their dates of creation are today?

도움이 되었습니까?

해결책

Use a file mask with a time constraint and today keyword:

synchronize local -filemask=">=today" "D:\ftp\OUT" /out

This syntax is supported by WinSCP 5.15 and newer only.


In earlier versions of WinSCP, you can use the %TIMESTAMP% syntax to create the today's constraint.

synchronize local -filemask=">=%TIMESTAMP#yyyy-mm-dd%" "D:\ftp\OUT" /out

Further reading:

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top