[Solved] Different INI in the same instance

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

[Solved] Different INI in the same instance

Post by w64bit »

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.
Last edited by w64bit on Fri Jan 21, 2022 3:32 pm, edited 1 time in total.
therube
Posts: 4985
Joined: Thu Sep 03, 2009 6:48 pm

Re: Different INI in the same instance

Post by therube »

Command line option,
-config
, <.ini file name>.
w64bit
Posts: 253
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit »

I was thinking about something like /config_load (in search box) but it's not loading a different ini file.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Different INI in the same instance

Post by NotNull »

And
/config_load "x:\path to\different Everything.ini"
(+ pressing ENTER) doesn't work on your system?
w64bit
Posts: 253
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit »

Error message: failed to load config 3
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Different INI in the same instance

Post by NotNull »

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

Everything 1.4.1.988 (x64)
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void »

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: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Different INI in the same instance

Post by NotNull »

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
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void »

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: 253
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit »

Tried 992. It is loading the ini file but the column order and size it's not imported.
void
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void »

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: 253
Joined: Wed Jan 09, 2013 9:06 am

Re: Different INI in the same instance

Post by w64bit »

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
Developer
Posts: 16773
Joined: Fri Oct 16, 2009 11:31 pm

Re: Different INI in the same instance

Post by void »

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