Script to upload only files created yesterday?

Advertisement

mrzabudske
Joined:
Posts:
1
Location:
US

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.

Reply with quote

Advertisement

Advertisement

You can post new topics in this forum