Not bringing Window to the Top

If you are experiencing problems with "Everything", post here for assistance.
Post Reply
zeenmakr
Posts: 5
Joined: Mon Nov 25, 2019 1:12 pm

Not bringing Window to the Top

Post by zeenmakr »

Hi,

Everything statusbar display 'n objects' of the search result. I'm been using an external script to grab that to determine whether '0 objects' or '1 objects' is return ect...

The problem I'm having is that the Everything Window keep popping up for every search made. I have an array of hundreds of files that need to check routine if it is exists.

Everything time this code is executed, I can't do anything else on this machine because of the the constants popup. Could it be run in the background wihout activate the Everything Window?

I'm exploring es.exe option as well but this cmd window does popup too

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

Re: Not bringing Window to the Top

Post by NotNull »

I think ES.exe is the better alternative (use the -get-result-count)
What program/script do you use to start ES / Everything? Maybe there is a mor elegant way.
void
Developer
Posts: 16672
Joined: Fri Oct 16, 2009 11:31 pm

Re: Not bringing Window to the Top

Post by void »

Please try ES.

Or, try starting Everything minimized:

Everything.exe -minimized
zeenmakr
Posts: 5
Joined: Mon Nov 25, 2019 1:12 pm

Re: Not bringing Window to the Top

Post by zeenmakr »

Thanks -minimized work, initially didn't think of it as a hide func

For ES I was able to export the results to txt file but what about exported the -get-result-count

Works

Code: Select all

es.exe -name foo bar -export-txt results.txt
Does not work

Code: Select all

es.exe -get-result-count -name foo bar -export-txt results.txt
NotNull
Posts: 5458
Joined: Wed May 24, 2017 9:22 pm

Re: Not bringing Window to the Top

Post by NotNull »

zeenmakr wrote: Fri Nov 29, 2019 9:53 pm Does not work

Code: Select all

es.exe -get-result-count -name foo bar -export-txt results.txt

Code: Select all

es.exe -get-result-count foo bar
Will give you the number of files found matching your criteria.
That can be processed further with something like:

Code: Select all

for /f "usebackq" %%x in (`es.exe -get-result-count  foo bar`) do if %%x gtr 0 echo Files found (%%x)
But all will depend on how and where you want to integrate this.
(as said: "What program/script do you use to start ES / Everything? Maybe there is a more elegant way.")
Post Reply