Post a reply

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)


Topic review


Re: Scripted Feedback

I have added an answer to the FAQ.

Scripted Feedback

I'm writing an application that will upload a local file to an sftp site, using WinSCP in conjunction with a script. However, I need the application to determine whether the upload has been successful. I've tried using the /log feature, but the log is overly detailed, and there is no obvious "script completed successfully" line. Ideally, I would add something like "echo 'File transfer complete'" to the end of my script, in conjunction with "option batch abort". This would only be written to the log if no errors had occurred. Could you add an "echo" command to the scripting language, or is there another way of providing feedback to another application?