A CIM_FileSpecification identifies a file that is either to be on or off the system. The file is to be located in the directory identified by the CIM_DirectorySpecificationFile associations. When the invoke() method is used, it is expected that it will use the combination of information provided to check for the file existence. Therefore, any of the properties with a NULL value are not checked. So, if only the Name and the MD5 properties have values, they are the only ones consider by the invoke() method.
CIM_FileSpecification - child subclasses in ROOT\cimv2
' The invoke method is to evaluate a particular check. The details of how the method evaluates a particular check in a CIM context is described by the non-abstract CIM_Check sub classes. The results of the method are based on the return value. - A 0 (zero) is returned if the condition is satisfied. - A 1 (one) is returned if the method is not supported. - Any other value indicates the condition is not satisfied. '
' The MD5 algorithm is a well-known algorithm for computing a 128-bit checksum for any file or object. The likelihood of two different files producing the same MD5 checksum is very small (about 1 in 2^64), and as such, the MD5 checksum of a file can be used to construct a reliable content identifier that is very likely to uniquely identify the file. The reverse is also true. If two files have the same MD5 checksum, it is very likely that the files are identical. For purposes of MOF specification of the MD5 property, the MD5 algorithm always generates a 32 character string. For example: The string abcdefghijklmnopqrstuvwxyz generates the string c3fcd3d76192e4007dfb496cca67e13b. See http://www. rsa.com/pub/rfc1321.txt for details on the implementation of the MD5 algorithm.'
' The CheckMode property is used to indicate whether the condition is expected to exist or not exist in the environment. When the value is True, the condition is expected to exist (e.g., a file is expected to be on a system) so invoke() is expected to return True. When the value is False, the condition is not expect to exist (e.g., a file is not to be on a system) so invoke is expected to return false '
' A CIM_FileSpecification identifies a file that is either to be on or off the system. The file is to be located in the directory identified by the CIM_DirectorySpecificationFile associations. When the invoke() method is used, it is expected that it will use the combination of information provided to check for the file existence. Therefore, any of the properties with a NULL value are not checked. So, if only the Name and the MD5 properties have values, they are the only ones consider by the invoke() method. '