-hostkey option in a windows script

Advertisement

divsi
Joined:
Posts:
1

-hostkey option in a windows script

I am using winscp 4.1.9 (Build 416) on a windows xp client. I created a win script with the -hostkey option to the open command but I get a problem in the following specific situation:

I call WinSCP.exe command and I use /command parameter

.\exe\WinSCP.exe /console /command "option batch on" "option confirm off" "open xx:yy@host.address -hostkey="ssh-rsa 1024 4:0c:bb:78:11:b4:f3:bb:c7:4b:7b:23:3c:a1:ec:76"" ...

I need to put the rsa key into quotes, but I need also to put in quotes the command OPEN.

If I use winscp.exe /console /script=test.txt (specifying the open command with hostkey option) all is ok.

There is a way to pass the open command with hostkey option to winscp.exe directly (without using a script)?

Thanks in advance and regards
Laura

Reply with quote

Advertisement

jdogi
Guest

I was so excited when I found a thread with the same issue that I've run into... until I read the reply.

I take it that there is (at this time) no way around this issue? No way to escape the internal quote characters?

Obviously, I'm trying to avoid using a script file, if at all possible.

Thanks

Reply with quote

Advertisement

You can post new topics in this forum