5/1/2023 0 Comments Vbscript process monitor![]() ![]() The problem with monitoring for a newly created file is that a file must reside somewherefor example, inside a directory. It can be anything from a new entry in an event log to a new file. This can be time consuming depending on the system involved. This class is a generic event class, and it will monitor for new instances of stuff. Since I know EXACTLY what it is I am looking for is it absolutely necessary to enumerate CIMV2 entirely to access this info. Wql = "select * from Win32_PerfRawData_PerfProc_Process" Response = MsgBox(instance.getObjectText_, vbOKCancel) Set wmi = GetObject("winmgmts:root/CIMV2") Below are two ways to look at all the wonderful items each Class has to offer: The items in bold are the NAME values for my targeted process. "!\Root\Cimv2")įor Each objInstance1 in objService.ExecQuery("Select * from Win32_PerfRawData_PerfProc_Process where Name = ' rndprint'")įor Each perf_instance2 in objService.ExecQuery("Select * from Win32_PerfRawData_PerfProc_Process where Name = ' rndprint'") Set objWMIService = GetObject("winmgmts:"
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |