I am trying to create a trigger for a scheduled task. The task should run, when a file is placed in some folder or one of its subfolders.
So I setup auditing and of course it works and events are coming in which should be used as task triggers.
Problem with the trigger is: I cannot use wildcards that would parse the events for the existence of that path being watched.
To illustrate: I'd like to watch c:\test and its subfolders. When I write a file "file1" to c:\test, the eventlog will reflect that. But there's no way I see to setup a trigger that looks for c:\test\* or something to catch all the matching events.
Though I can script this folder watching in powershell or vbs, I see no way to create a task trigger that does the same. This seems to be due to the limited options that Xpath 1.0 is offering.
Can anyone confirm this (or even better even refute it)?