Default LocalDirectory

Advertisement

Firenight
Guest

Default LocalDirectory

Hi,

I've a problem, i want to change my default local directory for all new session i create.

I know i can modify it into session key after create a new session or by indicate it when i create a new session.

But i want to change it for all new session without have to do something during a new session creation.

Thanks in advance for answer.

Reply with quote

Advertisement

Noah
Guest

Re: Default LocalDirectory

Firenight wrote:

Hi,

I've a problem, i want to change my default local directory for all new session i create.

I know i can modify it into session key after create a new session or by indicate it when i create a new session.

But i want to change it for all new session without have to do something during a new session creation.

Thanks in advance for answer.

Edit this registry key on your HOST machine:

HKEY_LOCAL_MACHINE > SOFTWARE > Cygnus Solutions > Cygwin > mounts v2 > /
Name: native | Type: REG_SZ | Data: C:\whatever\path

Cheers.

Reply with quote

Firenight
Guest

Thanks, for trying to help me.

I believe you speak about cygwin, i speak about WinSCP

I'm looking at the adress you give me and it doesn't exist in my registry.

Thanks in advance.

Reply with quote

Firenight
Guest

That's right with standard version :o

However we have modified code to avoid user to create session so we never have session key into our registry, consequently i can't use this method :(

But for the first one session if we put nothing he uses a default directory and i just want to change this one.

When you use your program you should not create a session but just connect and you re place in a local directory. If you see in registry there is no session key at this moment however you ve default directory for local directory.

I know i ve some problems to explain correctly the problem :o)

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,426
Location:
Prague, Czechia

If you have you own version of WinSCP, you can change the default in code.
WinSCP uses by default the "my documents" folder of Windows.
_________________
Martin Prikryl

Reply with quote

Firenight
Guest

Ok thanks,

I thought that maybe there is a registry key for default folder.
So I'm going to modify code.

Thanks

Reply with quote

Advertisement

You can post new topics in this forum