Writing a scripts to send new files since last session
I am looking to create a batch file for running a scheduled transfer using winscp 3 times a day.
The time I want to run are 1pm, 6pm and 9.30pm.
My initial idea was to have the script scan the folder and tranfer anything older than 5hours..
Scipt I have is this (from commands):
[i]"open ftp://USER:PASS1@123.123.123.123/" ^
"lcd C:\Users\TEST\TEST" ^
"put *.CSV<5HS" ^
I keep getting error - access denied, cannot copy file etc. I have tried a space btw the *.CSV and the time operator, tried it with and without extra quotation marks but Im not getting anywhere.
It will work without the time constraints no problem.
I was trying to find an answer on the KBs but no avail.
Ive also seen the following guide on Remembering the last timestamp which would be really appealing if I could get it to work but its beyond me at the moment!
https://winscp.net/eng/docs/faq_script_modified_files
Any help would be greatly appreciated.
Thanks,
Vee
The time I want to run are 1pm, 6pm and 9.30pm.
My initial idea was to have the script scan the folder and tranfer anything older than 5hours..
Scipt I have is this (from commands):
[i]"open ftp://USER:PASS1@123.123.123.123/" ^
"lcd C:\Users\TEST\TEST" ^
"put *.CSV<5HS" ^
I keep getting error - access denied, cannot copy file etc. I have tried a space btw the *.CSV and the time operator, tried it with and without extra quotation marks but Im not getting anywhere.
It will work without the time constraints no problem.
I was trying to find an answer on the KBs but no avail.
Ive also seen the following guide on Remembering the last timestamp which would be really appealing if I could get it to work but its beyond me at the moment!
https://winscp.net/eng/docs/faq_script_modified_files
Any help would be greatly appreciated.
Thanks,
Vee