/build/static/layout/Breadcrumb_cap_w.png

[Custom Inventory Rule] Files with no extension using FileExists

I'd like to find all the machines in my organization that have a file named "scripts" (no extension) on the root of the C:\ drive. I tried using

FileExists(C:\scripts)

 and

FileExists(C:\scripts.)

 but both return the machines with a folder named "scripts".


0 Comments   [ + ] Show comments

Answers (2)

Posted by: SMal.tmcc 9 years ago
Red Belt
0

Just tested on my kbox and put a space after the period

FileExists(C:\scripts. )

FileExists(C:\scripts.)
FileExists(C:\scripts.)

Comments:
  • That didn't work for me. Still catching PCs with a folder named Scripts. - adaml 9 years ago
    • that is strange, you can do a wmic call also for this info. - SMal.tmcc 9 years ago
    • what version is your k1000? - SMal.tmcc 9 years ago
      • 5.4.76849 - adaml 9 years ago
      • that may be the difference I am 5.5.90548 - SMal.tmcc 9 years ago
Posted by: SMal.tmcc 9 years ago
Red Belt
0

here is a shot using wmic

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

View more:

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ