Post a reply :: Support Forum

Tip: Styles can be applied quickly to selected text.

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: Scripted Feedback

I have added an answer to the FAQ.
amcfarlane

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?