WMI EVENT WATCHER TASK STAYS YELLOW

  • Hi,

    I have a WMI Event Watcher task with the below WQL Query. Then task stays yellow even when a file named test.txt is dropped in C:\ drive?

    SELECT * FROM __InstanceCreationEvent WITHIN 60 WHERE TargetInstance ISA 'CIM_DataFile' AND TargetInstance.Name = 'c:\\test.txt'

    Can someone help me with how to process the ssis package after a file has been dropped in the folder?

    Many Thanks for your help?

  • jyoti_bhatt (2/24/2010)


    Hi,

    I have a WMI Event Watcher task with the below WQL Query. Then task stays yellow even when a file named test.txt is dropped in C:\ drive?

    SELECT * FROM __InstanceCreationEvent WITHIN 60 WHERE TargetInstance ISA 'CIM_DataFile' AND TargetInstance.Name = 'c:\\test.txt'

    Can someone help me with how to process the ssis package after a file has been dropped in the folder?

    Many Thanks for your help?

    Jyoti,

    Chk dis out...

    SELECT * FROM __InstanceCreationEvent WITHIN 1 WHERE TargetInstance ISA "CIM_DirectoryContainsFile" AND TargetInstance.GroupComponent = "Win32_Directory.Name=\"D:\\\\Package\""

    Raunak J

  • Hi I have tried both options with the same result. The WMI Event Watcher Task remains in the yellow status.

    SELECT * FROM __InstanceCreationEvent WITHIN 5 WHERE TargetInstance ISA 'CIM_DataFile' AND TargetInstance.Drive = 'H:' AND TargetInstance.Path = '\\\\ExcelDrop\\\\' AND TargetInstance.FileName LIKE 'Test%' AND TargetInstance.Extension = 'xls'

    SELECT * FROM __InstanceCreationEvent WITHIN 10 WHERE

    TargetInstance ISA "CIM_DirectoryContainsFile" and TargetInstance.GroupComponent= "Win32_Directory.Name=\"h:\\\\ExcelDrop\""

Viewing 3 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic. Login to reply