Should %tmp% match "Temporary Internet Files"?

Found a bug in "Everything"? report it here
Post Reply
etc
Posts: 29
Joined: Tue Jun 24, 2014 7:17 pm

Should %tmp% match "Temporary Internet Files"?

Post by etc » Wed Jul 05, 2017 8:01 am

Search: %tmp%
The result contains "Temporary Internet Files".

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

Re: Should %tmp% match "Temporary Internet Files"?

Post by void » Wed Jul 05, 2017 8:56 am

Please enable Expand environment variables:
  • In Everything, from the Tools menu, click Options.
  • Click the Search tab on the left.
  • Check Expand environment variables.
  • Click OK.
Note: With this enabled, it will be impossible to search for %tmp% and match files with %tmp% in the filename.

I have on my TODO list to add a expand: search modifier.

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

Re: Should %tmp% match "Temporary Internet Files"?

Post by NotNull » Wed Jul 05, 2017 9:36 am

Should %tmp% match "Temporary Internet Files"?
I think it does.
On a default system %TMP% expands to C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows\Temp
Temporary Internet Files: C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows\Temporary Internet Files

So, searching for %tmp% will find C:\Users\<USERNAME>\AppData\Local\Microsoft\Windows\Temporary Internet Files, unless you use the "Match Whole Word" search option. (Menu:Serach > Match Whole Word or any of the other ways to set this option)

EDIT: Or search for: %tmp%\

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

Re: Should %tmp% match "Temporary Internet Files"?

Post by NotNull » Wed Jul 05, 2017 9:27 pm

void wrote:With this enabled, it will be impossible to search for %tmp% and match files with %tmp% in the filename..
This query seems to work:

Code: Select all

regex:(%)tmp(%)
I have on my TODO list to add a expand: search modifier.
Could that also be done with a search macro?
(like amp: or apos: , but then something like pct: for a literal "%" )

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

Re: Should %tmp% match "Temporary Internet Files"?

Post by void » Wed Jul 05, 2017 11:55 pm

#37:tmp#37: could also be used, I like the #pct: idea.
Could that also be done with a search macro?
Currently, no.

Post Reply