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: Error: Unknown command 'exit'

Please attach a full session log file showing the problem (using the latest version of WinSCP).

To generate the session log file, use /log=C:\path\to\winscp.log command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
efl@...

Error: Unknown command 'exit'

Hi,

I am using WinSCP by scripting it through XML. Files are going through, but I am still getting an error on each upload with "Unknown command 'exit'". Why is that? As far as I can see in your docs, I am supposed to use "exit" without "" to exit CMD.
The XML error log says: Unknown command 'exit '.

This is how it's run:
<ExecuteFile target="C:\Program Files (x86)\WinSCP\winscp.com" parameters='/command "open sftp://{connectionCredentials} -hostkey=""{hostKey}""" {commands}'/>

See attachment to see what {commands} looks like.