Topic "'Download most recent file' File not found"

Author Message
pulltopar

Guest


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
prikryl
[View user's profile]
Site Admin
Joined: 10 Dec 2002
Posts: 19363
Location: Prague, Czech republic
Do you refer to this line

Code:
var logfile = filesys.GetFile(logfilepath);

of this code:
http://winscp.net/eng/docs/script_download_most_recent_file#using_winscp_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:
http://winscp.net/eng/docs/library
http://winscp.net/eng/docs/library_powershell
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License