The reason that the relevance is returning false is that it is written to search for a specific path for a variable list of users, rather than recursively across all folders under a given user’s profile. For instance, it would find the file in the following locations:
While it is possible to perform a recursive search using relevance (see the descendant of <folder> inspector), I would not recommend doing so in a Fixlet’s (or action’s) applicability relevance as it is expensive, and will affect Client responsiveness.
One approach might be to run a ‘Scan’ Fixlet that will periodically output identified java binaries to a file which can then be referenced by a ‘Delete’ Fixlet.
If the folder locations (\Documents\ij150-win-jre6\ImageJ\jre\bin) are the same across all the users should be able to extend the “bin” name for the full folder path. If not the usage of the decendants of folder option listed by Aram might be your best practical option
appendfile {("del " & pathname of it & “%0d%0a”) of files “java.exe” of folders “\Documents\ij150-win-jre6\ImageJ\jre\bin\” of folders of folder “C:\Users”}
I don’t recommend using this in a relevance (constant heavy relevance evaluation process to scan file structures) but below should work. If anything would create a task with a True relevance and run across any systems that you want to remove this file from. Another way would be to create an analysis and limit how often it is evaluated to maybe once a day/week and run an action separate based on the analysis returning “True”.
exists pathnames whose(it as string as lowercase contains “bin\java.exe”) of descendants of folder “c:\users”
Thank you JBarter for the relevancy check. This is only onetime thing and will not run again. I also want to delete the file it finds in those folders.
Smart quotes got you - the forum sometimes changes doublequotes to “smart quotes”, so you need to delete and retype all the doublequotes if you have copy/pasted from the forum.
And also I’ve noted that when copying from web pages the quotes " characters sometimes get replaced with another character that isn’t actually quotes due to ASCII character style issues. Just to make sure I typically paste the relevance between the relevance guards into the QNA debugger and it should highlight any of the characters that were replaced.