Post a reply

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

martin

It have been solved in 4.2.3 as you can see in tracker reference above.
jdogi

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
martin

Re: -hostkey option in a windows script

Thanks for your post. This issue has been added to tracker.
divsi

-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