I know, this may be a bug in the third decimal place after the . However, howcome this works fine:
path:C:\program hardlinkcount:>1 !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft*
(shows many files, but also those in "\program files (x86)" , of course)
whereas this does not:
path:C:\program !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft* !hardlinkfilenames:"\program files (x86)\microsoft"
(shows nothing at all)
unfortunately, neither does do the trick:
path:C:\program hardlinkcount:>1 !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft**
path:C:\program hardlinkcount:>1 !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft***
Just for completeness:
I am using a filter "Junctions hardlink+count>1" which reads:
Search: hardlinkcount:>1 (nothing else)
Columns: (added) Hard Link Count; Hard Link File Names
The hardlinkcount-filter works (although it actually occurs twice, because I tried it without any filter as well, with identical error)
inconsistant restricted search results
inconsistant restricted search results
Last edited by rgbigel on Mon Nov 24, 2025 2:28 pm, edited 1 time in total.
Re: inconsistant restricted search results
sorry, I gave the second line which does not work incorrectly, it should read:
path:C:\program !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft* !hardlinkfilenames:"\program files (x86)\microsoft"
only happend when writing the post, not in the real query
path:C:\program !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft* !hardlinkfilenames:"\program files (x86)\microsoft"
only happend when writing the post, not in the real query
Re: inconsistant restricted search results
I don't understand the issue, could you please send the results from:
What do you mean by "I know, this may be a bug in the third decimal place after the . However, howcome this works fine:"
What third decimal place? what . ?
path:C:\program hardlinkcount:>1 !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft* What do you mean by "I know, this may be a bug in the third decimal place after the . However, howcome this works fine:"
What third decimal place? what . ?
What results are you expecting?whereas this does not:
path:C:\program !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft* !hardlinkfilenames:"\program files (x86)\microsoft"
(shows nothing at all)
Re: inconsistant restricted search results
Ok, the period is not a query, but my "funny" way of indicating that the bug described is rather minor.
What I am trying to do is find to find hard linked files only within the drive specified, but excluding these hardlinkfilenames pointing to: "windows" , "program files" and "program files (x86)". There are an awful lot of hardlinks in these, which j don't want to know about.
The query 1 given works fine (excluding the first two unwanted hardlinkfilenames, but showing roughly 4000 others), but adding the .. (x86) part reduces the result list to null, which is definitely unwanted. It should still show about 971 items, in my case.
I hope I got this description more clear now.
What I am trying to do is find to find hard linked files only within the drive specified, but excluding these hardlinkfilenames pointing to: "windows" , "program files" and "program files (x86)". There are an awful lot of hardlinks in these, which j don't want to know about.
The query 1 given works fine (excluding the first two unwanted hardlinkfilenames, but showing roughly 4000 others), but adding the .. (x86) part reduces the result list to null, which is definitely unwanted. It should still show about 971 items, in my case.
I hope I got this description more clear now.
Re: inconsistant restricted search results
I betcha it is quotes.
I wrote a little diatribe about quotes.
I've also made mention of single quotes.
See what this gets you:
quotes.bat, Quotes in a Batch file
File Name Quoting
And compare to:
I wrote a little diatribe about quotes.
I've also made mention of single quotes.
See what this gets you:
Code: Select all
path:C:\program !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft*" !hardlinkfilenames:"\program files (x86)\microsoft"quotes.bat, Quotes in a Batch file
File Name Quoting
And compare to:
Code: Select all
path:C:\program !hardlinkfilenames:\windows !hardlinkfilenames:"\program files\microsoft* !hardlinkfilenames:"\program files (x86)\microsoft"