Topic "How to know when WinSCP finished transfer.?"

Author Message
[View user's profile]

Joined: 2013-08-13
Posts: 1
Location: Torreon, Mexico
I am working with NAV 5.0 SP1 and I am using WinSCP in order to send/receive files from a SFTP Site. The programs is working just perfect but I got a question.

I need to identify whenever the programs finishes sending/getting file from my vendor SFTP. It seems the return code is the value I can use? But I don't really know how to.

This is how I call WinSCP.
retCode:=AwShShell.Run('Winscp /Console ' +
'/Script=' + TsftpSetup."Inbound Folder" + scriptFileName + ' ' +
'/Log=' + TsftpSetup."Inbound Folder" + logName,

Any ideas?
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26911
Location: Prague, Czechia
Yes, you want to use an exit code of WinSCP.
But I have no idea what language/development environment you are using, so I cannot help you.
Martin Prikryl

You can post new topics in this forum


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!


About donations

$9   $19   $49   $99

About donations


WinSCP Privacy Policy

WinSCP License