Topic "Local Directory"

Author Message
Guest




Hi,

I use portable version of WinSCP 4.1.8. I execute exe with parameter /ini=data.ini.
In 'Environment' > 'Directories' in 'Local Directory' i have 'C:\WebServ\httpd' (saved 'Set Defaults') but when i connect to any ftp server my 'Home Directory' is 'My Documents'!

How I can change that?
Guest




My ini file looks like that:

[Sessions\Default%20Settings]
LocalDirectory=C:%5CWebServ%5Chttpd
UpdateDirectories=1

When FTP data in ini file looks like that:

[Sessions\my_name]
LocalDirectory=C:%5CWebServ%5Chttpd
HostName=my_host_name
PortNumber=21
UserName=my_user_name
FSProtocol=5

everything is OK. Program load 'Home directory' path from [Session\my_name] > 'LocalDirectory'.

Log file:

. 2009-04-05 12:30:43.765 Proxy: none
. 2009-04-05 12:30:43.765 FTP: Passive: No
. 2009-04-05 12:30:43.765 Local directory: C:\WebServ\httpd, Remote directory: home, Update: No, Cache: Yes
. 2009-04-05 12:30:43.765 Cache directory changes: Yes, Permanent: Yes
. 2009-04-05 12:30:43.765 DST mode: 1

But if ftp data looks like that:

[Sessions\my_name]
HostName=my_host_name
PortNumber=21
UserName=my_user_name
FSProtocol=5

program don't load path from [Sessions\Default%20Settings] > 'LocalDirectory', and set 'Home directory' as 'default' - 'My Documents'.

Log file:

. 2009-04-05 12:34:14.484 Proxy: none
. 2009-04-05 12:34:14.484 FTP: Passive: No
. 2009-04-05 12:34:14.484 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2009-04-05 12:34:14.484 Cache directory changes: Yes, Permanent: Yes
. 2009-04-05 12:34:14.484 DST mode: 1

Can you fix this? Thanks for help.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
Well, this behaviour is by design. Setting defaults affects only new sessions.
_________________
Martin Prikryl
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License