fuyuna
asked on
Return NULL data from CIM_DATAFILE WQL
Hello,
I create WMI script to check a file version in the remote host as below.
SELECT * FROM CIM_DataFile where name ='C:\\AAA\\BBB\\XXXXXXX_XX XXX.dll'
For Each objFile in colFiles
Wscript.Echo objFile.Version
Next
But Running it. I found that it returned blank.
So When I checked by using WMI Query Analyzer.I found it returned Null data.
But Right-Clicking that file and looking into the properties.I can confirm the file version and product version.
Are there any difference between the version of datefile_class and file properties?
I create WMI script to check a file version in the remote host as below.
SELECT * FROM CIM_DataFile where name ='C:\\AAA\\BBB\\XXXXXXX_XX
For Each objFile in colFiles
Wscript.Echo objFile.Version
Next
But Running it. I found that it returned blank.
So When I checked by using WMI Query Analyzer.I found it returned Null data.
But Right-Clicking that file and looking into the properties.I can confirm the file version and product version.
Are there any difference between the version of datefile_class and file properties?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
I could not find the solution for it.
I have to close this question.
I have to close this question.
ASKER
Sorry for my poor explanation.
Certainly, I could get the return data from Notepad.exe in my scripts.
The File that did return Null data is especial file not Microsoft provided.
As you know, Almost of file return the File vesrion data.
But I found that one file does not return data.although I could watch its file version by right-clicking.
If you know reason of this, Would you advise me?
Regards,
Hisashiba