'Download most recent file' File not found

Advertisement

pulltopar
Guest

'Download most recent file' File not found

Hi All,

When I run this javascript, I get an error (apparently) on line (41,1): File not found. This refers to the log .xml file. Can anyone shed some light on this?

Thanks

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
28,469
Location:
Prague, Czechia

Re: 'Download most recent file' File not found

Do you refer to this line

var logfile = filesys.GetFile(logfilepath);
of this code:
https://winscp.net/eng/docs/script_download_most_recent_file#scripting ?

Chances are that you use some obsolete version of WinSCP that cannot produce an XML file. Make sure you use the latest one.

Anyway, I recommend you to use WinSCP .NET assembly instead, possible from PowerShell script:
https://winscp.net/eng/docs/library
https://winscp.net/eng/docs/library_powershell

Reply with quote

Advertisement

You can post new topics in this forum