beyuch Posted December 24, 2007 Posted December 24, 2007 I have created a WMI query that queries a PC for *.mdb. The query is fine and runs as expected.. BUT... I am now trying to write some code that can:1. detect that the WMI query is running and 2. stop it (if need be)Note: The end goal is to have a web interface which can be accessed by many support staff, but I only want 1 of the above queries running on a workstation at a time. Does anyone know how this can be achieved?my code looks similar to this:set objwmiservice = getobject("winmgmts:\\.\root\cimv2")set colfiles = objwmiservice.execquery("select * from cim_datafile where extension = 'mdb' and drive = 'c:'")for each objfile in colfiles wscript.echo objfile.drivenext
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now