返回列表 回复 发帖

[贴士] 查找进程

在从零开始学起时,在我硬盘上一些曾经帮助我很多的小纸条!--Sz

dim a
a = 0
VBSBegin
    for each ps in GetObject("winmgmts:\\localhost\root\cimv2:win32_process").instances_
    If ps.name = "QQ.exe" then
    //要判断的进程名
    a = 1
    End If
    next
    If a = 1 then
    MessageBox "找到进程"
    Else
    MessageBox "没找到进程"
    End If
VBSEnd
简单就好!
返回列表