|
KiTTY : ForumLast modification : - |
|
|
|---|---|---|
| Welcome / Recent changes / News / Forum / Download / Contacts | Edit | |
WinSCP auto-start in current directory
Koëng - Fri 18/11/2016 17:22:45 CET +0100
Hi,
When I use these commands: # winscp() { printf "\033]0;__ws:"`pwd`"\007" ; printf "\033]0;__ti\007" ; } # winscp Then WinSCP starts in the current directory. However, if I use the WinSCP command from the Menu-List, the current directory ins't opened. It's possible to automatically track the current directory and start the tool in the current directory? Thank you! Cloug - Sun 11/12/2016 21:41:31 CET +0100
Hello,
Try the bash script : winscp() { echo -ne "\033];__ws:${PWD}\007"; }. It's the current bash for linux... or change your shell. But for the accentued letters I have a problem because It's appears as a encoding problem between the two systems. I use iconv in linux and set the charset cp1252 for windows. It's good for french but for the others tongues i don't know. Here the modified script : winscp() { echo -ne "\033];__ws:${PWD}\007"|iconv -f UTF-8 -t CP1252; } Cloug Cloug - Sun 11/12/2016 21:59:36 CET +0100
Oups,
Here the code winscp() { echo -ne "\033];__ws:${PWD}\007" |iconv -f UTF-8 -t CP1252; } Answer |
||
|
Wiki utilisant PumaWiki 1.0, merci aux membres de la PuTTY Team 2026/06/13 19:56 -- en -- 216.73.216.19 -- |
||