To give you the best experience, this site uses cookies. Continuing to use 9bis.net means you agree to our use of cookies.
 

English version Russian version Version française Nederlandse versie Versión española Version portuguese Version polonaise Italian version Versiunea româna   KiTTY News

KiTTY : Forum

Last modification : -

KiTTY web site




Forum Home
 

start a WinSCP session directly into the current directory

standin - Mon 27/05/2013 04:44:00 CEST +0200

The page said it could be done by a bash function.

winscp() { echo -ne \"\\033];__ws:${PWD}\\007\"; }

but I don't know where to put it, could someone help me? thanks in advance.

Dirk - Mon 12/08/2013 08:53:52 CEST +0200

If bash is your login-shell put the line in ~/.bash_profile. After this logout and re login or source the file: . ~/.bash_profile. Ready. Now you can start WinSCP: write winscp in the kitty-window ...

Trevor North - Sun 01/03/2015 00:47:24 CET +0100

I added the line as written into my user ~/.profile on an ubuntu 14.04 host i am connecting to from windows
sourced it after logging in with
. ./profile
but when I type winscp in the kitty window connected to this host, it just gives two quotes.
If i hit run winscp from the kitty menu, it still logs into the remote location in original location, not the one where i changed to

Also is there any way to have the drag and drop function put the file into the current directory instead of the root ? It's a great time saving feature to save having to open a file transfer but only if it can put the file in the right place.

Thanks

manuel - Thu 15/06/2017 17:53:15 CEST +0200

Hi,

This can be done very easy:

- Create one "User Script" with this command.
- To "paste" (=execute) the winscp description call to the command.
- Then inside your shell type "winscp".

And how to crete the script in the Portable version?

- Add this file to your "\Commands\WinSCP-Bash" with this content:
WinSCP-Bash\winscp() { echo -ne "3];__ws:${PWD}{CONTENT}7"; }\

- Then the script is available in your menu.

Regards.




Answer


The forum is actually closed