Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

WMI Event Watcher Task

Status
Not open for further replies.

Shairal

Technical User
Oct 13, 2005
25
US
I am using the WMI Event Watcher Task to watch for the arrival of a file.
I have the following entered into the WqlQuerySource field in the WMI Event Watcher task.
When I run it, the task turns yellow but does not find the file when it shows up (stays yellow until it times out).

SELECT * FROM __InstanceCreationEvent WITHIN 10
WHERE targetinstance isa "CIM_DirectoryContainsFile"
AND TargetInstance.GroupComponent = "WIN32_Directory.Name=\"c:\\\\Users\\\\myfile\\\\TestFolder\\\\text.txt\""

I know that there is a third-party File Watcher Task, but I'd like to know why this isn't working.
Any suggestions would be greatly appreciated!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top