Using %TIMESTAMP% Command
I need to use WinSCP to automate FTP transfers and I need my script to only upload files dated from the day before. Below is the %TIMESTAMP% line from my script:
put -filemask="*>=%TIMESTAMP-1D#yyyy-mm-dd%" C:\Users\Test\Desktop\Resources\*
This command copies all files instead of just the ones with yesterdays timestamp.
Any ideas on how to correct this?
Thank you.
put -filemask="*>=%TIMESTAMP-1D#yyyy-mm-dd%" C:\Users\Test\Desktop\Resources\*
This command copies all files instead of just the ones with yesterdays timestamp.
Any ideas on how to correct this?
Thank you.