WMI Files Montioring using C#
问题 I am working on WMI(Windows Management Instrumentation) in C# and stuck at a point. I have to create an application using WMI (C#) similar to File System Watcher. I would like to get notified every time whenever within a particular folder a new file is created or deleted. MY WQL query is : SELECT * from _InstanceModificationEvent within 2 where TargetInstance ISA 'CIM_DataFile' and TargetInstance.Drive = 'C:' AND TargetInstance.Path='\\Test' While running the query using wbemtest , it