调用方法: if checkexeisrun("VB6.EXE") then msgbox "存在"'检查进程是否运行,exeName 参数是要检查的进程 exe 名字,比如 VB6.EXEPrivate Function CheckExeIsRun(exeName As String) As Boolean
On Error GoTo Err
Dim WMI
Dim Obj
Dim Objs
CheckExeIsRun = False
Set WMI = GetObject("WinMgmts:")
Set Objs = WMI.InstancesOf("Win32...