Can't get script to work using a public key
This is our current command which works fine:
We are using a public key with our new connection. I can't get it to work via a script file:
I get the following error:
Any help would be appreciated.
Thanks
Dan
"C:\Program Files (x86)\WinSCP\WinSCP.com" /console /script=current_file.cmd
Current_file
:
open sftp://bpxxxxxx:yxx=MxxP@sftp-uat-us.aciondemand.com:22/
"C:\Program Files (x86)\WinSCP\WinSCP.com" /console /script=new_file.cmd
new_file
:
open sftp -o IdentityFile="c:\winscp_pk\convertsshuat" bpxxxxxx@sftp-uat-us.aciondemand.com
If I take out the"open" is not recognized as an internal or external command
open
and just try sftp
I get:
Is it a problem using a script with a public key?"sftp" is not recognized as an internal or external command
Any help would be appreciated.
Thanks
Dan