Does not return the path to the MS Office executable.

Found a bug in "Everything"? report it here
Post Reply
yuusakuri
Posts: 2
Joined: Mon Aug 17, 2020 10:51 pm

Does not return the path to the MS Office executable.

Post by yuusakuri »

I ran the following code in powershell.
Get-Item returns the path to the file, although es.exe didn't return anything when I looked for it.

Code: Select all

$path = 'C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE'

Code: Select all

es.exe -i $path
Returns $null

Code: Select all

Get-Item -LiteralPath $path | Select-Object -ExpandProperty fullname
Returns 'C:\Program Files\Microsoft Office\root\Office16\EXCEL.EXE'
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Does not return the path to the MS Office executable.

Post by void »

The Excel.exe file is most likely a hard link.

While Everything does indexing all hardlinks, changes to hard links can be missed.

Please try forcing a rebuild in Everything and see if ES returns the correct results.
  • In Everything, from the Tools menu, click Options.
  • Click the Indexes tab on the left.
  • Click Force Rebuild.
  • Click OK.
yuusakuri
Posts: 2
Joined: Mon Aug 17, 2020 10:51 pm

Re: Does not return the path to the MS Office executable.

Post by yuusakuri »

Thank you very much. I got the Excel path.
By the way, is there a way to do this with the CLI?
void
Developer
Posts: 15096
Joined: Fri Oct 16, 2009 11:31 pm

Re: Does not return the path to the MS Office executable.

Post by void »

Force a rebuild from the CLI?

Please try the -reindex command line option with Everything.exe:

Everything.exe -reindex

If you want ES to wait for the reindex, please use a timeout value, eg:
es.exe excel.exe -timeout 99999

where 99999 is the number of milliseconds to wait for Everything to reply.
Post Reply