Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

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
pulltopar

'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