Exist file that ends with

I’m trying to write relevance that would exclude systems that contain one of two files.

a file that ends with “p_site_icacls_ciso.log” in the folder "z:\scripts"
OR
a file that ends with “s_site_icacls_ciso.log” in the folder “z:\scripts”

Everything that I’ve tried is not working. Please help. Thanks.

This would return true if either one of those files existed. You could change to not exists if you want to exclude when one or both exist

exists files whose (name of it as lowercase ends with "p_site_icacls_ciso.log" or name of it as lowercase ends with "s_site_icacls_ciso.log") of folders "z:\scripts"

Thanks so much. This is works perfectly :slight_smile:

1 Like