Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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
comfortablynumb

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!