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

Please log in to comment

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
Please log in to comment
0

here is a shot using wmic

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

Please log in to comment
Answer this question or Comment on this question for clarity

Share