Scheduled task to upload files for only current day?

Advertisement

comfortablynumb
Joined:
Posts:
2

Scheduled task to upload files for only current day?

Hello,
I need to create a scheduled task that will upload files only for the current day. I looked at the synchronize option but that won't work as I don't control the destination directory.

I could use synchronize if there was a way to have WINSCP only look at files created or modified on the day the task runs, and I have to schedule this task to run multiple times per day, then email the results.

Can anyone help?

Thank you!

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,552
Location:
Prague, Czechia

Re: Scheduled task to upload files for only current day?

comfortablynumb wrote:

I need to create a scheduled task that will upload files only for the current day. I looked at the synchronize option but that won't work as I don't control the destination directory.
Why that means you cannot use synchronize?

I could use synchronize if there was a way to have WINSCP only look at files created or modified on the day the task runs, and I have to schedule this task to run multiple times per day, then email the results.
If you want to upload files with modification date in a certain day, you need to generate the script on the fly with the certain date.
There are many examples on how to generate timestamp into script, e.g. here:
https://winscp.net/eng/docs/script_download_timestamped_filename

Reply with quote

Advertisement

You can post new topics in this forum