如何判断进程是否在VBScript中被归类为[后台进程]?

时间:2015-10-05 20:28:58

标签: vbscript process

以下代码来自google:

 Const strComputer = "." 
  Dim objWMIService, colProcessList
  Set objWMIService = GetObject("winmgmts:" & "{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
  Set colProcessList = objWMIService.ExecQuery("SELECT * FROM Win32_Process WHERE Name = 'Process.exe'")
  For Each objProcess in colProcessList 
    objProcess.Terminate() 
  Next  

有没有办法判断 objProcess 是后台进程还是App,如下所示?

enter image description here

0 个答案:

没有答案