Need help search Gencontrol with original name

(imported topic written by Nazir_Hussain91)

Hi, I am trying to search for gencontrol with its original name, but it’s not searching entire drive

pathnames of descendants whose (pathname of it as lowercase ends with “exe” and value “OriginalFilename” of version block of it = “gencontrol.exe”) of (root folder of drive “C:”)

it searches some of the users folders successfully and displays result and then stops saying:

E: The expression could not be evaluated: class IllegalFileName

Please help

(imported comment written by NoahSalzman)

Are you doing this in the Fixlet Debugger? What happens if you try it run as an Analysis from the Console?

(imported comment written by Nazir_Hussain91)

I have tried on both Fixlet Debugger and Analysis from the Console

Both gives me same result, out of 10 file locations both gives 7 successfully result and then stops with above mentioned error. Rest 3 are kept in different users folder and windows folder

If I create more copies of gencontrol.exe in “custom folders†in C: or in “Program Files†, relevance is able to find them

But it doesn’t find any kept in “windows†folder,

I assume its because its stopping while searching in “Users” folders for some season. (using Win7, havent tested on Xp yet)

(imported comment written by Nazir_Hussain91)

On Fixlet Debugger, have added more copies to test

q: pathnames of descendants whose (pathname of it as lowercase ends with “exe” and value “OriginalFilename” of version block of it = “gencontrol.exe”) of (root folder of drive “C:”)

A: C:$Recycle.Bin\S-1-5-21-1731682378-389941684-364932339-68743$R8UI438.exe

A: C:$Recycle.Bin\S-1-5-21-1731682378-389941684-364932339-68743$RNTIF85.exe

A: C:\Nazir\egn.exe

A: C:\Nazir\gen\hjkio.exe

A: C:\Nazir\gen - Copy\90.exe

A: C:\Nazir\gen - Copy\gen\egn.exe

A: C:\Nazir\gen - Copy\xys\gen\mmmm.exe

A: C:\Noor\Softwares\egn.exe

A: C:\Noor\Softwares\12.exe

A: C:\Users\mnshaikh\Desktop\egn.exe

E: The expression could not be evaluated: class IllegalFileName

And i get the same result in Analysis from the Console.

(imported comment written by Nazir_Hussain91)

Kindly find the test on WinXP when checking only users folders,

If i search anyother folder it works.

Any idea why this is happening or how can i check on which file this error is coming,

And how can i skip any file which cannot be read or giving error.

q: pathnames of descendants whose (pathname of it as lowercase ends with “.exe” and value “OriginalFilename” of version block of it = “gencontrol.exe”) of folder “C:\Documents and Settings”

E: The expression could not be evaluated: class IllegalFileName

(imported comment written by Nazir_Hussain91)

found the error, script stops when reading file with illegal chars in name, screen shot attached,

Please let me know how to read such files or skip.