Different INI in the same instance

General discussion related to "Everything".
Post Reply
w64bit
Posts: 76
Joined: Wed Jan 09, 2013 9:06 am

Different INI in the same instance

Post by w64bit » Tue Aug 25, 2020 1:36 pm

My ini file it is in the program folder and I am switching between 2 ini files by closing the program and extract the necessary one from a zip archive.
Is there any command to use when the program is opened to load the settings from another ini file?
In the end it could be useful a INI drop down menu, similar with the Bookmark menu but populated with ini files.

therube
Posts: 2683
Joined: Thu Sep 03, 2009 6:48 pm

Re: Different INI in the same instance

Post by therube » Tue Aug 25, 2020 3:12 pm

Command line option,
-config
, <.ini file name>.

w64bit
Posts: 76
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit » Tue Aug 25, 2020 4:29 pm

I was thinking about something like /config_load (in search box) but it's not loading a different ini file.

NotNull
Posts: 2294
Joined: Wed May 24, 2017 9:22 pm

Re: Different INI in the same instance

Post by NotNull » Tue Aug 25, 2020 5:52 pm

And
/config_load "x:\path to\different Everything.ini"
(+ pressing ENTER) doesn't work on your system?

w64bit
Posts: 76
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit » Tue Aug 25, 2020 8:04 pm

Error message: failed to load config 3

NotNull
Posts: 2294
Joined: Wed May 24, 2017 9:22 pm

Re: Different INI in the same instance

Post by NotNull » Tue Aug 25, 2020 8:20 pm

Just tested: same here. Error code varies (2, 3, 123)

Everything 1.4.1.988 (x64)

void
Site Admin
Posts: 5657
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void » Wed Aug 26, 2020 8:38 am

Please try without the quotes:
In Everything, type in the following search and press ENTER:
/config_load x:\path to\different Everything.ini

-or-

In Everything, type in the following search and press ENTER:
/config_load
Select your config file and click Open.

NotNull
Posts: 2294
Joined: Wed May 24, 2017 9:22 pm

Re: Different INI in the same instance

Post by NotNull » Wed Aug 26, 2020 9:04 am

void wrote:
Wed Aug 26, 2020 8:38 am
Please try without the quotes:
Did try that; that was the 123 error code.
( /config_load (without parms) does work OK, btw )


Debug log:
EDIT:
The line "CreateFileW(): 123: Failed to open file " misses a 0x05 character at the end. Not supported by forum software, I guess.

Code: Select all

Everything
Version 1.4.1.988 (x64)
Windows NT 6.2
Processors 2
IsAdmin 0
AppData 0
Service 1
cmdline "C:\Tools\Everything\Everything.exe"
WM_ACTIVATE 0000000000000000 0000000000000000, lastfocus 0000000000190892, current focus 0000000000190892
WM_ACTIVATE 0000000000000002 0000000000000000, lastfocus 0000000000190892, current focus 0000000000000000
unable to set focus 0
SYSCOMMAND 000000000000f012 00000000002e045d
search '/config_load T:\My Everything.ini' filter '' sort 19
term 0000000008d40020, flags: 0140, next: 0000000008b47130, notnext: 0000000000000000
folderop: 2, fileop: 2, term: /config_load
term 0000000008b47130, flags: 0144, next: 0000000008d3f6c0, notnext: 0000000000000000
folderop: 126, fileop: 126, term: T:\My
term 0000000008d3f6c0, flags: 0140, next: 0000000000000000, notnext: 0000000000000000
folderop: 2, fileop: 2, term: Everything.ini
SET SORT 0
found 0 folders, size 0, db search time taken: 0.036615 seconds
found 0 files, size 0, db search time taken: 0.070585 seconds
total size 0, calculated in 0.000000 seconds
set sort 19 1
SET SORT 2 19
finished sort, time taken 0.000211 seconds
update selection 0.000000 seconds
DB_WAIT: _db_ready_proc waiting...
DB_WAIT: _db_ready_proc waited 0.000118 seconds
new results 0
when ready 11 000000000000002d 0000000000000000
CreateFileW(): 123: Failed to open file 
failed to load config 123
WM_ACTIVATE 0000000000000000 0000000000000000, lastfocus 0000000000190892, current focus 0000000000190892




void
Site Admin
Posts: 5657
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void » Wed Aug 26, 2020 10:38 am

Thanks for checking.

There's a bug in the current version that will prevent Everything from loading the config from the specified filename.

Fixed for the next nightly build.

w64bit
Posts: 76
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit » Tue Sep 01, 2020 8:23 am

Tried 992. It is loading the ini file but the column order and size it's not imported.

void
Site Admin
Posts: 5657
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void » Tue Sep 01, 2020 10:03 am

Thanks for bringing this issue to my attention.

The loaded column order and size information from the ini file will be lost when you close the current window.

Closing the Everything search window will save the current column order and size information to your settings.

Currently, you could:
Open a new window from the Everything tray icon, this window will open with your newly loaded ini settings.
Close the old window.

I'll look into applying the loaded settings to the current window.

w64bit
Posts: 76
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit » Tue Sep 01, 2020 10:23 am

One more question. I added this command to the Bookmark menu:

Code: Select all

/config_load "C:\Program Files\Everything\1.ini"
Is there any possibility to add an Enter to this command so the settings to be loaded without pressing the Enter key?

void
Site Admin
Posts: 5657
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void » Tue Sep 01, 2020 10:32 am

Currently, no.

Another option is to try the -install-config <Everything.ini> command line option.

For example:
Everything.exe -install-config "C:\Program Files\Everything\1.ini"

Post Reply