Config file in different location

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
JohnM
Posts: 289
Joined: 08 Jun 2006 11:59
Location: Windows 11 Pro @100%

Config file in different location

Post by JohnM »

I would like to run XY from it’s installation folder (say c:\Program Files\XYplorer) but have it’s config file in another folder (say My Documents\XYplorer). This way I can back up my config file along with my normal backup without having to go to the program folder.

I’ve tried some experimentation with “File->Configuration->Save shortcut to this configuration” but it’s doesn’t do what I want. This function wants to keep the config file in the same folder as XY but with a different name. Maybe I’m not using it correctly.

Is what I’m talking about possible? :?

Cheers
JohnM
Windows 11 Pro x64
XYplorer 28.30.0000 x64

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Config file in different location

Post by admin »

JohnM wrote:Is what I’m talking about possible?
Currently not; theoretically, of course.
XYplorer is 100% portable (USB-stick etc...) and part of this is keeping the files together in one location. Fulfilling your wish would break that philosophy.

Statler
Posts: 58
Joined: 06 Jun 2006 09:38
Location: Austria

Post by Statler »

Just a quick thought about combining the two worlds: what if XY searches for it's config file? First location could be the standard location, the second in the user settings, and it uses the config file it finds first.
You'd need some way to specify where XY should save it's confuguration, of course.

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Statler wrote:Just a quick thought about combining the two worlds: what if XY searches for it's config file? First location could be the standard location, the second in the user settings, and it uses the config file it finds first.
You'd need some way to specify where XY should save it's confuguration, of course.
Good idea. The good old PATH variable... :wink: ... I'll put it on my list.

EDIT: there's little logical hick-up though: you can't hide the info about the INI's location inside the INI itself :wink: So a different, new file would be needed just for this info.

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Post by j_c_hallgren »

The other problem I think I see with Statler's idea: So just how would XY ever look in 2nd location? Without some sort of a pointer file, it would, when no config found in std, presume that it's the first time run and create one in standard location, is what I think would happen...
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

jacky
XYwiki Master
Posts: 3106
Joined: 23 Aug 2005 22:25
Location: France
Contact:

Post by jacky »

hmm.. I don't really see the problem :roll:
Statler wrote:what if XY searches for it's config file? First location could be the standard location, the second in the user settings, and it uses the config file it finds first.
What's wrong here? Look for XYplorer.ini (or whatever what specified) in the app path, if it's not there look into My Documents\.... and if it's not there, create it into app.path (here cause it's the default location)

What's wrong in this?
Proud XYplorer Fanatic

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

j_c_hallgren wrote:The other problem...
"Other"? That was the problem I tried to explain. :)

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

jacky wrote:What's wrong here? Look for XYplorer.ini (or whatever what specified) in the app path, if it's not there look into My Documents\.... and if it's not there, create it into app.path (here cause it's the default location)

What's wrong in this?
How can XY know about "My Documents\..." (or whatever it shall be) without/before having found the INI containing that information?

So, as jc said, there must be one file containing a pointer to the INI file in the app path.

Statler
Posts: 58
Joined: 06 Jun 2006 09:38
Location: Austria

Post by Statler »

admin wrote:EDIT: there's little logical hick-up though: you can't hide the info about the INI's location inside the INI itself :wink: So a different, new file would be needed just for this info.
No, my thought was that it's a fixed path somewhere in Settings, maybe "Documents and Settings\All Users\Application Settings\XYplorer". It could even be "Documents and Settings\usename\Application Settings\XYplorer", that way one could have different settings for different users on the same PC. :)

Oh, I'm not sure if your license allows that. :oops: :twisted:

admin
Site Admin
Posts: 66075
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Post by admin »

Statler wrote:
admin wrote:EDIT: there's little logical hick-up though: you can't hide the info about the INI's location inside the INI itself :wink: So a different, new file would be needed just for this info.
No, my thought was that it's a fixed path somewhere in Settings, maybe "Documents and Settings\All Users\Application Settings\XYplorer". It could even be "Documents and Settings\usename\Application Settings\XYplorer", that way one could have different settings for different users on the same PC. :)

Oh, I'm not sure if your license allows that. :oops: :twisted:
No. :twisted:

Post Reply