Re: Ambiguous command ' '
That's the stray double quote. It should not be there. Or it should probably be at the end of the previous (
open
) line.
open
) line.
2022-04-29 10:45:03.824 Script: Ambiguous command ''. Possible matches are: !, ascii, binary, bye, call, cd, checksum, chmod, close, cp, dir, echo, exit, get, help, keepuptodate, lcd, lls, ln, lpwd, ls, man, mget, mkdir, mput, mv, open, option, put, pwd, recv, rename, rm, rmdir, send, session, stat, symlink, synchronize
. 2022-04-29 10:45:03.824 Script: Failed
. 2022-04-29 10:45:03.824 Script: Exit code: 1
. 2022-04-29 10:45:03.824 Closing connection.
. 2022-04-29 10:45:03.824 Sending special code: 12
. 2022-04-29 10:45:03.824 Sent EOF message
"C:\Program Files (x86)\WinSCP\WinSCP.com" /ini=nul /log=C:\Script\ftp_pipechain\log\ftplog.txt /script=C:\Script\ftp_pipechain\pipechain_commands.txt
echo
open sftp://company_ID12345:********@sftp.company.com:2222/ -hostkey="ssh-rsa 2048 ***********************
"
cd /prod/incoming
mput \\server\{path}\*.edi
exit