Topic "Version 5 storage location of winscp.ini wrong!"

Author Message
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Hello.

In version 5 of WinSCP there is a issue with the storage location of the winscp.ini (If you switch to file based configuration).

Since the first beta of version 5 I get this error (see attachment) because the application tries to write the configuration file in the programs installation directory.

Version 4 does handle this properly and stores the file in the %APPDATA% directory.

I would love to see a option to define a custom configuration location to be able to save the configfile in my dropbox directory to sync my config file between two locations.

Thank you for this absolutely essential application.
Bild 029.png (16.08 KB)

Description: "Zugriff verweigert" means "Access denied"

Bild 029.png

Advertisements
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
Version 4.x is writting INI file to %APPDATA% due to File system redirector
https://msdn.microsoft.com/en-us/library/aa384187.aspx
So actually it is 4.x that is buggy.

If you want to force WinSCP to use another location, use /ini command line switch.
https://winscp.net/eng/docs/commandline
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Great thank you.

I'm sorry I did not expect the commandline would expose settings not available in the GUI configuration panel.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
harkman wrote:
I'm sorry I did not expect the commandline would expose settings not available in the GUI configuration panel.

INI file path has to be known before loading the configuration, so it cannot be part of the configuration Smile
_________________
Martin Prikryl
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Yes, sure.

But I think you could save the ini location in the registry (I guess you save the setting if a ini file should be used in the registry too?)

So on startup the program could work like this:
1) connamdline ini option set? No:
2) use ini file option = true? Yes:
3) check registry for ini location
4) load settings.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24552
Location: Prague, Czechia
It's more complicated.

But anyway, this request has been added to the tracker:
http://winscp.net/tracker/show_bug.cgi?id=817
_________________
Martin Prikryl
harkman
[View user's profile]

Joined: 2012-03-14
Posts: 12
Location: Germany
Thanks.
This is much appreciated.
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