Multiple instances?

General discussion related to "Everything".
Post Reply
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Multiple instances?

Post by Ghopper »

Before asking a question, I want to again express my appreciation and admiration for the creator of Everything. This program is absolutely indispensable: it’s extremely well designed, amazingly versatile, and incredibly useful. Thanks for creating it! And thanks also for making it better and better!

Everything is so useful that I’d like to have two instances running at the same time. I read the instructions regarding “multiple instances,” but to my regret I’m not smart enough to understand it.

Could I have two simultaneous instances simply by running both an installed version and a portable version? Or would that be as or more complicated than following the instructions?

Thank you.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

Thank you for your feedback.
Could I have two simultaneous instances simply by running both an installed version and a portable version?
No, normally, only one instance can exist at a time.

Please try the following:
  • Right click your Desktop and click New -> Shortcut.
  • Click Browse....
  • Navigate to: C:\Program Files\Everything\Everything.exe and Click OK.
  • In "Type the location of the item", add the following to the end:
    "C:\Program Files\Everything\Everything.exe" -instance "New instance"
    where "New instance" can be anything you like..
  • Click Next.
  • Give the shortcut a name, it can be anything you like, eg:
    Everything (New instance)
  • Click Finish.
Please run this new shortcut.
In this new Everything instance, please setup your indexed files from Tools -> Options -> Indexes.
Please copy this desktop shortcut to anywhere convenient for you.

You can access all running instances of Everything from the system tray.
Hover over a Everything icon to determine the instance name.

If you would like to start this new instance on system startup:
  • In Windows Explorer, type in the following address and press ENTER:
    shell:startup
  • Right-click drag and drop your new Everything shortcut from the Desktop into this shell:startup folder and click Copy here.
If you need more detail, could you please give a reason for the new instance.

Multiple Instances
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Re: Multiple instances?

Post by Ghopper »

Thank you very much for the detailed reply. Would doing that enable the second instance to have different option settings than the initial instance (for example, different indexed drives, different excluded filetypes, and different fonts and colors)?

My reason for wanting two instances is because I often need to search for different files across different drives at essentially the same time, and if I had another instance set up to cover only a given set of drives, it would save a little time (maybe lots over a day) in terms of opening new windows with new search pre-sets and filters. And if each instance could have a different color scheme it would be less likely that I’d intermittently forget which instance was set to cover which drives.

I may be overlooking a simpler way to achieve my objective.

I make extensive use of the filter feature (which is extremely useful) but because there’s no readily visible indicator showing which filter name is being searched, I am sometimes momentarily surprised when I don’t get the results I expected, and then I eventually realize that a filter was engaged.

I also use the bookmark feature, which is likewise extremely useful.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

Would doing that enable the second instance to have different option settings than the initial instance (for example, different indexed drives, different excluded filetypes, and different fonts and colors)?
Yes, each instance has its own settings and data.
My reason for wanting two instances is because I often need to search for different files across different drives at essentially the same time, and if I had another instance set up to cover only a given set of drives, it would save a little time (maybe lots over a day) in terms of opening new windows with new search pre-sets and filters. And if each instance could have a different color scheme it would be less likely that I’d intermittently forget which instance was set to cover which drives.
The alternative is filters with a single instance:
  • Right click your Desktop and click New -> Shortcut.
  • Click Browse....
  • Navigate to: C:\Program Files\Everything\Everything.exe and Click OK.
  • In "Type the location of the item", add the following to the end:
    "C:\Program Files\Everything\Everything.exe" -filter "My Filter"
  • Click Next.
  • Give the shortcut a name, it can be anything you like, eg:
    Everything (My Filter)
  • Click Finish.
Create the "My Filter" in Everything:
  • In Everything, from the Search menu, click Add to filters....
  • Set the Name to: My Filter
    -where My Filter is the name of your filter (it can be anything)
  • Change the Search to: c:|d:|e:
    -where c:|d:|e: are the drives you wish to search.
  • Click OK.
-If you need help describing the search locations for each filter, please let me know.

If you place this shortcut on your desktop or in the start menu, you can assign it a keyboard shortcut:
  • Right click the shortcut and click Properties.
  • Click the Shortcut tab.
  • Change Shortcut Key.
  • Click OK.
-You can create as many filters/shortcuts as you need.



Back to instances, to customize your new instance, please see
Customizing the Everything icon
Fonts and colors

I make extensive use of the filter feature (which is extremely useful) but because there’s no readily visible indicator showing which filter name is being searched, I am sometimes momentarily surprised when I don’t get the results I expected, and then I eventually realize that a filter was engaged.
The active filter is shown in the status bar (bottom right)
Showing the Filter Bar from View -> Filters may also help. Double click the divider between the search bar and filter bar to swap sides.
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Re: Multiple instances?

Post by Ghopper »

Wow, that's great! Thank you very much for the detailed reply. I followed your instructions and it worked perfectly.
Is it possible to limit the scope of such a shortcut filter to multiple selected folders on selected drives, instead of entire drives?
I never noticed that the name of the active filter was shown at the bottom right of the screen! Thanks for pointing that out.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

Is it possible to limit the scope of such a shortcut filter to multiple selected folders on selected drives, instead of entire drives?
To set a filter search to multiple locations, simply search for the location with a trailing backslash and separate each location with |

For example, to search:
C:\Program Files OR C:\Windows OR C:\users
Set the filter search to:

"C:\Program Files\"|"C:\Windows\"|"C:\users\"

Use double quotes to escape spaces.
Use a trailing backslash for each location.
| = OR
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Re: Multiple instances?

Post by Ghopper »

Fantastic, thanks. I am not sure what you mean by “use double quotes to escape spaces.” The folders I’d like to have searched in this filter each have names consisting of more than one word with a space between each word. I put double quotes where you put single quotes in your example, but it didn’t seem to work for me.

For example, I’d like to search these two folders in one filter:

I:\- Microsoft\MS sucks big time
And
I:\- Microsoft\MS as bad as Google

(The dash followed by multiple spaces is there so that the folder remains at the top of the list of folders in the drive when sorted by name).

I tried
““I:\- Microsoft\Sucks big time\””|““I:\- Microsoft\As bad as Google””

with and without the spaces, and nothing seems to be there.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

Please try the following search:

"I:\- Microsoft\Sucks big time\"|"I:\- Microsoft\As bad as Google\"


" = double quote
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Re: Multiple instances?

Post by Ghopper »

I just noticed that my post didn't match what I wrote. There are 6 spaces between the dash and the word Microsoft, but only 1 space appeared in my post. Do I include those 6 spaces in the search?

Also in trying this I've been organizing/editing the original search I created with the shortcut (above). Is that OK or do I need to create create a new shortcut from scratch?
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

I just noticed that my post didn't match what I wrote. There are 6 spaces between the dash and the word Microsoft, but only 1 space appeared in my post. Do I include those 6 spaces in the search?
The forum will eat excess spaces, only one will be shown.
Please include all spaces in your filter's search.
Also in trying this I've been organizing/editing the original search I created with the shortcut (above). Is that OK or do I need to create create a new shortcut from scratch?
The spaces in your shortcut should match the spaces in your filter's name.

For example, if you have named your filter "My Filter" with 3 spaces between My and Filter, then you will need to use 3 spaces between My and filter in your shortcut.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

New filter example:



Filter Name:
My Filter

Filter Search:
"C:\Program Files\";"C:\Windows\";"C:\Users\"


Just to clarify, the shortcut you create on the Desktop must specify the filter name (not the search), for example:
"C:\Program Files\Everything\Everything.exe" -filter "My Filter"
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Re: Multiple instances?

Post by Ghopper »

Fantastic. That worked.
It seems that my problem is that I was drafting the searches in a Word document (so I could keep track of what I had tried) then copying them from Word into the Everything filter organize/edit dialog box. But Word was creating "smart" (fancy curly) quotes, and apparently they don't work. When I started using normal straight-line quotes, there was no problem. I switched back and forth from plain to fancy quotes a few times and it really does seem like that was the problem.
Thanks for your help and your patience!
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Re: Multiple instances?

Post by Ghopper »

Re my erroneous assertion that there's no easy way to see that a filter is being used, you pointed out:

"Double click the divider between the search bar and filter bar to swap sides."

Wow, that's great. It completely solved my imaginary problem. I don't know how I never noticed that before.

In my experience Everything does way more and is more well thought out than it's possible to imagine. For example, before finding Everything, I spent many hours trying to find a good solution to locating and fixing files with too-long paths. Everything finds them instantly, and lets you fix them easily. Amazing.
Ghopper
Posts: 35
Joined: Fri Feb 05, 2016 6:44 pm

Re: Multiple instances?

Post by Ghopper »

I just noticed something strange. On my computer, the Processes tab of Windows Task Manager always shows two listings for Everything. One typically uses approximately 60k of working memory and the other typically uses approximately 3k. After creating a couple of shortcut-based filter searches as described above, one of these listings starting showing over 1 million k of working memory being used. I then deleted those shortcut-based filter searches, and the memory usage dropped back down to the typical levels. Is this to be expected, or did I do something wrong?
Thanks for any insights!
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

There is normally two Everything.exe processes.

One for the Everything Service and one of the Everything search client.

If you terminate the Everything Service, please restart it by:
  • In Everything, from the Tools menu, click Options.
  • Click the General tab on the left.
  • Check Store settings and data in %APPDATA%\Everything
  • Uncheck Run as administrator.
  • Check Everything Service. (Please make sure this is tick-checked and not square-checked)
  • Click OK.
  • Exit Everything (right click the Everything tray icon and click Exit).
  • Restart Everything.
The Everything Service will typically use less than 1MB (1024 KB) of working set (Memory).
The Service can use more memory during the initial indexing, which you might be seeing if your shortcuts are using the -instance <your instance name>
This should only occur once for the first time you launch each new instance.
ihot01
Posts: 8
Joined: Thu Feb 06, 2020 6:44 pm

Re: Multiple instances?

Post by ihot01 »

void wrote: Tue Jan 19, 2021 3:41 am For example, to search:
C:\Program Files OR C:\Windows OR C:\users
Set the filter search to:

"C:\Program Files\"|"C:\Windows\"|"C:\users\"

Use double quotes to escape spaces.
Use a trailing backslash for each location.
| = OR
In the latest version (feb 9 2022) version, it looks like we do not use double quotes to escape spaces.
I think we can just use C:\Program Files\|C:\Windows\|C:\users\.
Can VoidTools documentation be updated with the above examples?
raccoon
Posts: 1017
Joined: Thu Oct 18, 2018 1:24 am

Re: Multiple instances?

Post by raccoon »

@ihot01, why do you think that double-quotes are no longer used to escape spaces?
Are you using version 1.4 or version 1.5 alpha?
Can you give us an example search syntax?

You can certainly get the desired results without quoting spaces, but, you can also get some false-positive results when you do not. For example, C:\Program Files\ without quotes will also return results if you have the folders C:\Program\ or E:\Files\ on your computer. Using double-quotes would exclude those results.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

Please check if you have Match Path enabled under the Search menu.

If Match Path is enabled you can search for paths without quotes:

c:\program files\

Technically, searching for c:\program files\ without match path will still work as there's a \ with each term.
The \ will enable match path for each search term.

The search is broken into terms by using a space or |

c:\program files\

Term 1: c:\program
Term 2: files\



Be careful with the | operator as it will split the following search:

C:\Program Files\ | C:\Windows\ | C:\users\

to:

C:\Program ( Files\ OR C:\Windows\ OR C:\users\ )




The double quotes are still required to escape spaces in a search term:

"C:\Program Files\"|"C:\Windows\"|"C:\users\"

| must be used to break terms. ( ; cannot be used to define multiple paths with Everything 1.4)



The next major version of Everything (1.5) will have support for using ; and |

For example:

"C:\Program Files\;C:\Windows\;C:\users\"
"C:\Program Files\";C:\Windows\;C:\users\
"C:\Program Files\";"C:\Windows\";"C:\users\"
"C:\Program Files\"|C:\Windows\|C:\users\
"C:\Program Files\"|"C:\Windows\"|"C:\users\"
%path%
parent:%path%
ihot01
Posts: 8
Joined: Thu Feb 06, 2020 6:44 pm

Re: Multiple instances?

Post by ihot01 »

2) I have version 1.4.1.1015. How do I get version 1.5alpha?
This works:
C:\Users\david\Desktop\|D:\dho\Ho_Live_2017\|”D:\dho\Google Drive\”
But these do not work:
D:\dho\OneDrive20180416\|C:\Users\david\Desktop\|D:\dho\Ho_Live_2017\|”D:\dho\Google Drive\”

D:\dho\toTransfer\|C:\Users\david\Desktop\|D:\dho\Ho_Live_2017\|”D:\dho\Google Drive\”

Any idea why?
I downloaded the latest version and rebuilt my indexes.
I had donated $ to voidtools in the past because you have a productivity tool that I use often. I rarely buy software
jj1
Posts: 1
Joined: Mon Aug 29, 2022 8:37 pm

Re: Multiple instances?

Post by jj1 »

Thanks for the detailed response to this question. I was running into out of memory issues so searched if I can run different instances focused on different shares/drives and the response really helped me start using this great tool again. As the original questioner posted, I dont always contribute donations for free software but this tool is so good and so useful, I gladly pay every year knowing how much time it saves me every day.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

2) I have version 1.4.1.1015. How do I get version 1.5alpha?
Get the Everything 1.5 alpha here


This works:
C:\Users\david\Desktop\|D:\dho\Ho_Live_2017\|”D:\dho\Google Drive\”
But these do not work:
D:\dho\OneDrive20180416\|C:\Users\david\Desktop\|D:\dho\Ho_Live_2017\|”D:\dho\Google Drive\”
D:\dho\toTransfer\|C:\Users\david\Desktop\|D:\dho\Ho_Live_2017\|”D:\dho\Google Drive\”
Please make sure you use " and not ” to escape spaces.
Please make sure the path D:\dho\ exists in your index.
Please make sure match regex is disabled under the Search menu.



Thank you for your support.
JanFromHolland
Posts: 6
Joined: Tue Jun 21, 2022 1:48 pm

Re: Multiple instances?

Post by JanFromHolland »

I have the same request. Starting TWO time the newest Everything version at the same time.
In many other programs you can "check" that in Settings.
VOID - can you bould in that too or is it to difficult or will the app to big after that?

I solved my problem now by running the latest and the second latest versions of Everyting
(it helps a lot that the Everyting program icon's have different orange colors)
BTW it's mentioned already many times that this a wonderfull program, so I only say THANKS.
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Multiple instances?

Post by NotNull »

Would Menu:File => New Search Window be enough for what you want to accomplish?
JanFromHolland
Posts: 6
Joined: Tue Jun 21, 2022 1:48 pm

Re: Multiple instances?

Post by JanFromHolland »

NotNull wrote: Thu Jun 15, 2023 6:39 pm Would Menu:File => New Search Window be enough for what you want to accomplish?
For a simpel search that will do. Not if (and that's where this tread is about I think) you want for both mirrors different search settings.
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

To create a new window when launching Everything:
  • In Everything, from the Tools menu, click Options.
  • Click the UI tab on the left.
  • Check Create a new window when running Everything.
  • Click OK.
Thy Grand Voidinesss
Posts: 687
Joined: Wed Jun 01, 2022 5:01 pm

Re: Multiple instances?

Post by Thy Grand Voidinesss »

Ghopper wrote: Tue Jan 19, 2021 1:02 am [...]
Could I have two simultaneous instances simply by running both an installed version and a portable version?
[...]
And why not just create

C:\PORTABLES\Everything
C:\PORTABLES\Everything-B
C:\PORTABLES\Everything #3


versions?
void
Developer
Posts: 16680
Joined: Fri Oct 16, 2009 11:31 pm

Re: Multiple instances?

Post by void »

The installed Everything.exe and the portable Everything.exe are the same.

Both run in the unnamed instance by default.



Use -instance to specify an instance.
This will be easier to do for the portable version.
Call your portable Everything.exe with -instance "My unique instance name"

For example:

"C:\Portable apps\Everything\Everything.exe" -instance "My unique instance name"
Last edited by void on Fri May 24, 2024 11:20 pm, edited 1 time in total.
Reason: C:\Portable apps\Everything\Everything.exe => "C:\Portable apps\Everything\Everything.exe"
Thy Grand Voidinesss
Posts: 687
Joined: Wed Jun 01, 2022 5:01 pm

Re: Multiple instances?

Post by Thy Grand Voidinesss »

void wrote: Thu May 23, 2024 12:27 am [...]
For example:

C:\Portable apps\Everything\Everything.exe -instance "My unique instance name"
If I am not mistaken, then correct command would be

Code: Select all

"C:\Portable apps\Everything\Everything.exe" -instance "Unique name for an instance"
i.e. with
"
signs enclosing that explanatory path due to a presence of a pause sign in it
therube
Posts: 4955
Joined: Thu Sep 03, 2009 6:48 pm

Re: Multiple instances?

Post by therube »

(Looks like he must have edited the post, adding the ".)


As far as "portable" is concerned, if you're talking about something like PortableApps "portable", https://portableapps.com/apps/utilities ... g-portable (rather then simply the "portable" Everything in the .ZIP container), then I'd expect you'd want to be running the file, EverythingPortable.exe (from the PortableApps version), cause if you ran Everything.exe itself, directly, then you would not be running, Portable.
Post Reply