/build/static/layout/Breadcrumb_cap_w.png

Inventory Rule on a modified date

 

I need to setup an inventory rule that will give me the modified date of a specific dll file.

 

The current inventory rule that I am using is : FileInfoReturn(c:\Program Files\SAP\Retail Systems\Point of Sale\JDGEFT.dll, ModifiedDate,2013/04/19) This rule is not working!

 

I need to know which pc in the organization have this file with this specific modified date. My rule is not working am I doing something wrong?

 

 

 


0 Comments   [ + ] Show comments

Answers (2)

Posted by: dugullett 11 years ago
Red Belt
0

I don't have anything to test this on, but try replacing 2013/04/19 with either DATE or TEXT. After it's populated you can then run a report for machines matching that date.

Posted by: StockTrader 11 years ago
Red Belt
0

Hello,

 

the documentation about the FileInfoRetun function that you can find at http://www.kace.com/uk/support/resources/kb/article/what-are-the-steps-to-create-a-custom-data-field-inventory tells that the syntax is the following:

 

FileInfoReturn(string fullPath, string attributeToRetrieve, string valueType)

Three valueTypes are supported "TEXT", "NUMBER", and "DATE". These values determine what kind of sorting/searching you can do. Note that NUMBER is specifically an integer value.

The following list of supported attributes can be retrieved from the FileInfoReport() function.

  • Comments
  • CompanyName
  • FileBuildPart
  • ...

So the right syntax in your case should be FileInfoReturn(c:\Program Files\SAP\Retail Systems\Point of Sale\JDGEFT.dll, ModifiedDate,DATE)

If you want to use a comparison condition with a particual date value you may try one of these custom rule functions:

  • FileInfoGreaterThan(fullpath, attribute, type, value)
  • FileInfoLessThan(fullpath, attribute, type, value)
  • FileInfoEquals(fullpath, attribute, type, value)

Kind regards,

 StockTrader

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