Hello Sirs,
I have a problem using a variable with the following line of code:
Set colMonitoredEvents = objWMIService.ExecNotificationQuery _
("SELECT * FROM __InstanceModificationEvent WITHIN 2 WHERE " _
& "TargetInstance ISA 'CIM_DataFile' and " &
"TargetInstance.Name=" & "'objFile'")
The objfile variable points to a file in the format c:\\scripts\
\test.txt.
If I replace the variable with the file name the script works
correctly.
Any ideas are very, very welcome.
Thanks!
zz