Problem with WQL query [CIM_DataFile]:Property-combinations fail
From: Manfred Braun (aa_at_bb.cc)
Date: 12/04/04
- Previous message: Manfred Braun: "Re: Returning open files from a server"
- Next in thread: Peter Falz: "Re: Problem with WQL query [CIM_DataFile]:Property-combinations fail"
- Reply: Peter Falz: "Re: Problem with WQL query [CIM_DataFile]:Property-combinations fail"
- Messages sorted by: [ date ] [ thread ]
Date: Sat, 4 Dec 2004 22:00:51 +0100
Hi All,
I am doing a wql-select to find a set of files or a completely specified
filename. My only problem is, if I specify some property-combinations,
nothing is returned. For example:
select * from CIM_DataFile where (Drive = 'c:') and (Path = '\\test\\') and
(Extension = 'txt')
returns a result, one of them is "c:\test\demo.txt", exactly, what I expect.
But if I use
select * from CIM_DataFile where (Drive = 'c:') and (Path = '\\test\\') and
(Extension = 'txt') and (FileName = 'demo')
the query executes properly, but returns an empty resultset. If I specify
the FileName, but not the extension, it works also. The problem occurs only,
if I specify drive, path, FileName and Extension together. I am currently
building a wmi-based library, which should be useful under all conditions
[Ok, I I know and have the full qualified filename, I would use another
method!]. I use and need WMI for that, because it allows impersonation in
web-management tools.
Any help would be great!
Best regards,
Manfred Braun
(Private)
Mannheim
Germany
mailto:_manfred.braun_@manfbraun.de
(Remove the anti-spam-underscore to mail me!)
- Previous message: Manfred Braun: "Re: Returning open files from a server"
- Next in thread: Peter Falz: "Re: Problem with WQL query [CIM_DataFile]:Property-combinations fail"
- Reply: Peter Falz: "Re: Problem with WQL query [CIM_DataFile]:Property-combinations fail"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|