/build/static/layout/Breadcrumb_cap_w.png

Software Question


[Custom Inventory Rule] Files with no extension using FileExists

04/29/2014 2040 views

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

Comments


All Answers

0

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

FileExists(C:\scripts. )

FileExists(C:\scripts.)
FileExists(C:\scripts.)
Answered 04/29/2014 by: SMal.tmcc
Red Belt

  • That didn't work for me. Still catching PCs with a folder named Scripts.
    • that is strange, you can do a wmic call also for this info.
    • what version is your k1000?
      • 5.4.76849
      • that may be the difference I am 5.5.90548
0

here is a shot using wmic

Answered 04/29/2014 by: SMal.tmcc
Red Belt

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