/build/static/layout/Breadcrumb_cap_w.png

Using K1000 Custom Software Inventory to find a specific file type

Hoping someone can help me out. This might be an easy answer since have not been able to find one.

I'm trying to use the custom Inventory field within Inventory > Software to find computers with a specific file type.


This is what I'm trying to do FileExists(c:\windows\temp\*.dcx) or FileExists(c:\temp\*.dcx)

But it looks like the wildcard is not working. Is this possible?

Any help would be much appreciated.

Thanks


0 Comments   [ + ] Show comments

Answers (1)

Answer Summary:
Posted by: snardell 9 years ago
White Belt
0

I answered my questions. I used the following and it is working:

ShellCommandTextReturn(cmd /c dir "C:\windows\temp\*.dcx") or ShellCommandTextReturn(cmd /c dir "C:\temp\*.dcx")

 
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