Question

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?

Was it helpful?

Solution

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:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top