Post a reply

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)


Topic review


Script to upload only files created yesterday?

I was wondering if it is possible to upload files (using put or synchronize) in a specific folder that have been created on or before a specific date. I know if a regular .bat file you can use /d on xcopy and put a date IE 02:10:2021 and it will copy only files newer than that date.

Currently I have the following...
put -neweronly -nopermissions -nopreservetime "foldername"

Not sure if this is correct or not as I am new to WinSCP scripting. Overall I am looking to upload any files created yesterday and yesterday only. The folder can have files going back 50 days but I only want to copy files created yesterday.

Thanks for any and all help. I have been struggling with this project and have found very little help.