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
 

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


The forum is actually closed