Script: Unknown command '2048'.
Hi, Could anyone please help in come out of this challenge? Your earliest advise will be greatly appreciated.
When I trigger the following command from PowerShell code getting "Script: Unknown command '2048'. " but if I execute the same from DOS it works fine.
I am not able to understand why this command is not working in PowerShell.
The execution command coded in powershell is that G:\winscp577\winscp /command "open sftp://name:password@domain.com -hostkey=""ssh-rsa **** **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**""" "ls" /log="G:\winscp577\winscp.log" /loglevel=0
winscp.log says;
< 2016-05-01 11:23:18.795 Script: Active session: [1] name@domain.com
> 2016-05-01 11:23:18.795 Script: 2048
< 2016-05-01 11:23:18.795 Script: Unknown command '2048'.
. 2016-05-01 11:23:18.795 Script: Failed
. 2016-05-01 11:23:18.795 Script: Exit code: 1
. 2016-05-01 11:23:18.795 Closing connection.
. 2016-05-01 11:23:18.795 Sending special code: 12
. 2016-05-01 11:23:18.795 Sent EOF message
When I trigger the following command from PowerShell code getting "Script: Unknown command '2048'. " but if I execute the same from DOS it works fine.
I am not able to understand why this command is not working in PowerShell.
The execution command coded in powershell is that G:\winscp577\winscp /command "open sftp://name:password@domain.com -hostkey=""ssh-rsa **** **:**:**:**:**:**:**:**:**:**:**:**:**:**:**:**""" "ls" /log="G:\winscp577\winscp.log" /loglevel=0
winscp.log says;
< 2016-05-01 11:23:18.795 Script: Active session: [1] name@domain.com
> 2016-05-01 11:23:18.795 Script: 2048
< 2016-05-01 11:23:18.795 Script: Unknown command '2048'.
. 2016-05-01 11:23:18.795 Script: Failed
. 2016-05-01 11:23:18.795 Script: Exit code: 1
. 2016-05-01 11:23:18.795 Closing connection.
. 2016-05-01 11:23:18.795 Sending special code: 12
. 2016-05-01 11:23:18.795 Sent EOF message