Put -latest source dest
Hi,
I tried this command 'put -latest c:\toupload\* /home/user/' from this page: https://winscp.net/eng/docs/script_upload_most_recent_file. I saved it in ex.txt file. Run this under Task Scheduler as follows: program/script as "C:\Program Files (x86)\WinSCP\WinSCP.exe", add arguments (optional as /log="c:\users\folder\scripts\winscp.log" /ini=nul /script="C:\users\folder\scripts\ex1.txt", start in c:\users\folder\scripts\. The script runs fine, but the log says:
Script: No file matching '*' found. (System Error. Code: 5.
< 2020-02-14 11:42:05.177 Access is denied)
Any help would be appreciated.
I tried this command 'put -latest c:\toupload\* /home/user/' from this page: https://winscp.net/eng/docs/script_upload_most_recent_file. I saved it in ex.txt file. Run this under Task Scheduler as follows: program/script as "C:\Program Files (x86)\WinSCP\WinSCP.exe", add arguments (optional as /log="c:\users\folder\scripts\winscp.log" /ini=nul /script="C:\users\folder\scripts\ex1.txt", start in c:\users\folder\scripts\. The script runs fine, but the log says:
Script: No file matching '*' found. (System Error. Code: 5.
< 2020-02-14 11:42:05.177 Access is denied)
Any help would be appreciated.