Re: WinSCP get with one day less as file name.
Use the
See https://winscp.net/eng/docs/scripting#timestamp
Or if you can rely on timestamps, you can easily use a time constraint:
See https://winscp.net/eng/docs/file_mask#size_time
See also https://winscp.net/eng/docs/script_download_most_recent_file
%TIMESTAMP%
syntax:
get abc_%TIMESTAMP-1D#ddmmyyyy%
See https://winscp.net/eng/docs/scripting#timestamp
Or if you can rely on timestamps, you can easily use a time constraint:
get >=yesterday<today
See https://winscp.net/eng/docs/file_mask#size_time
See also https://winscp.net/eng/docs/script_download_most_recent_file