external file with connection settings

Advertisement

cniry
Guest

external file with connection settings

hi,
how can I add my connections to taskbar of windows 7?

I create file "spojeni.scp", what I have asigned to opening in winSCP but when I tried to run it, winSCP say: Host not found.

spojeni.scp contain:
option batch on
option confirm off
open ftp://user:pass@multihost.cz

I know, that it can be opened in command line with winscp.exe /console /script=example.txt
But when I assigned file to opening in winscp, i think that Windows call it as: winscp.exe spojeni.scp


Thanks very much for reply. Sorry for my bad english :)

Reply with quote

Advertisement

cniry
Guest

Re: external file with connection settings

At windows registry I edit key
HKEY_CLASSES_ROOT\Applications\WinSCP.exe\shell\open\command
"C:\Program Files\WinSCP\WinSCP.exe" /script="%1"

But it's doing nothink :(

for test i edit key as:
"C:\Program Files\WinSCP\WinSCP.com" /script="%1"
and this work fine, but only in console

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,518
Location:
Prague, Czechia

Re: external file with connection settings

cniry wrote:

At windows registry I edit key
HKEY_CLASSES_ROOT\Applications\WinSCP.exe\shell\open\command
"C:\Program Files\WinSCP\WinSCP.exe" /script="%1"

But it's doing nothink :(
It should do something, but hidden. Make sure to add /console switch to make the console visible.

Reply with quote

Advertisement

You can post new topics in this forum