Error: Unknown command 'exit'

Advertisement

efl@...
Guest

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.

commands.PNG

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,442
Location:
Prague, Czechia

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.

Reply with quote

Advertisement

You can post new topics in this forum