Getting file version issue

I am getting a “Singular expression refers to nonexistent object” when using the following relevance statements:

However, the file actually exists and it has a file and product version on its property:

Can anyone help? Thanks a lot!

64-bit?

version of file "mcupdate_GenuineIntel.dll" of native system folder

3 Likes

It works like a charm, thanks!
I wonder why my relevance statements don’t work since I specified the file along with its path (They work on other files)

@trn beat me to it :slight_smile:

This appears to be an issue with 64-bit redirection. Note that your first relevance clause checking for the existence of the file is not actually checking a file object (but just a string…which will always exist).

Q: exists "foo"
A: True
T: 0.028 ms
I: singular boolean

Q: exists file "C:\windows\system32\mcupdate_genuineintell.dll"
A: False
T: 0.256 ms
I: singular boolean

Q: exists file “mcupdate_genuineintel.dll” of system x32 folder
A: False
T: 0.425 ms
I: singular boolean

Q: exists file “mcupdate_genuineintel.dll” of system x64 folder
A: True
T: 0.454 ms
I: singular boolean

2 Likes

A full explanation always takes longer to type :slight_smile:

1 Like