|
KiTTY : ForumLast modification : - |
|
|
|---|---|---|
| Welcome / Recent changes / News / Forum / Download / Contacts | Edit | |
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 |
||
|
Wiki utilisant PumaWiki 1.0, merci aux membres de la PuTTY Team 2026/06/10 10:53 -- en -- 216.73.216.200 -- |
||