Downloading files with today's date only from SFTP server with WinSCP

故事扮演 提交于 2019-12-04 17:45:43

Use a file mask with a time constraint and the today keyword to create the today's constraint.

get -filemask=">=today" /remote/path/* C:\local\path\

The today keyword is supported by WinSCP 5.15 and newer only. In older versions, you can use %TIMESTAMP% syntax:

get -filemask=">=%TIMESTAMP#yyyy-mm-dd%" /remote/path/* C:\local\path\

Your *>1D file mask downloads files created/modified in the last 24 hours, so not only today's files.

Further reading:

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!