Re: How to download today's file using script
For general scripting, please refer to:
https://winscp.net/eng/docs/guide_automation
And use get command with -filemask switch with time constraint:
or:
https://winscp.net/eng/docs/script_download_most_recent_file
https://winscp.net/eng/docs/file_mask
https://winscp.net/eng/docs/scriptcommand_get
https://winscp.net/eng/docs/scripting#timestamp
https://winscp.net/eng/docs/guide_automation
And use get command with -filemask switch with time constraint:
get /path/* -filemask=*>1D
or:
get /path/* -filemask=*>=%TIMESTAMP#yyyy-mm-dd%
https://winscp.net/eng/docs/script_download_most_recent_file
https://winscp.net/eng/docs/file_mask
https://winscp.net/eng/docs/scriptcommand_get
https://winscp.net/eng/docs/scripting#timestamp