Put -latest source dest

Advertisement

cp713a
Joined:
Posts:
7
Location:
usa

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.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,262
Location:
Prague, Czechia

Re: Put -latest source dest

The local account that runs your Scheduler task does not have permissions to access the c:\toupload folder.
Double check that.

Reply with quote

cp713a
Joined:
Posts:
7
Location:
usa

Re: Put -latest source dest

I do have access to this d:\uploadfolder, because I can mapped it with a different letter drive just fine. Plus, I have admin rights on this.
Even I used the full UNC path, like D:\uploadhere-server\sourcefolder\etc\etc\folder\
It's now saying that the System cannot find the path specified. Which is really weird, because I'm able to see it and map to it on a separate drive (Z: drive).

Reply with quote

Advertisement

You can post new topics in this forum