Page 1 of 1
Config file in different location
Posted: 10 Jul 2006 07:57
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
Re: Config file in different location
Posted: 10 Jul 2006 09:20
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.
Posted: 10 Jul 2006 10:55
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.
Posted: 10 Jul 2006 11:01
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...

... 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

So a different, new file would be needed just for this info.
Posted: 11 Jul 2006 02:49
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...
Posted: 11 Jul 2006 03:52
by jacky
hmm.. I don't really see the problem
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?
Posted: 11 Jul 2006 05:54
by admin
j_c_hallgren wrote:The other problem...
"Other"? That was the problem I tried to explain.

Posted: 11 Jul 2006 05:57
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.
Posted: 11 Jul 2006 07:05
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

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.

Posted: 11 Jul 2006 07:09
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

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.

No.
