Re: Transfer New Log file Every Morning
For scripting and scheduling in general, start here:
https://winscp.net/eng/docs/guide_automation
https://winscp.net/eng/docs/guide_schedule
To select the yesterdays file only:
If you can rely on a relative time between creation of the log and run of the script, you can do with simple file mask with time interval constraint, like:
See https://winscp.net/eng/docs/file_mask
For other (more exact, but also more complicated) solutions see:
https://winscp.net/eng/docs/script_download_most_recent_file
https://winscp.net/eng/docs/script_download_timestamped_filename
https://winscp.net/eng/docs/guide_automation
https://winscp.net/eng/docs/guide_schedule
To select the yesterdays file only:
If you can rely on a relative time between creation of the log and run of the script, you can do with simple file mask with time interval constraint, like:
put *>1d
See https://winscp.net/eng/docs/file_mask
For other (more exact, but also more complicated) solutions see:
https://winscp.net/eng/docs/script_download_most_recent_file
https://winscp.net/eng/docs/script_download_timestamped_filename