zoukankan      html  css  js  c++  java
  • 判断程序是否在进程中[来源网络]

    Option Explicit
    Dim strComputer,objWMIService,colProcessList
    strComputer = "."
    Set objWMIService = GetObject("winmgmts:{impersonationLevel=impersonate}!\\" & strComputer & "\root\cimv2")
    Set colProcessList = objWMIService.ExecQuery("Select * from Win32_Process Where Name = 'javaw.exe'")
    If colProcessList.Count>0 Then
    WScript.Echo "运行"
    Else
    WScript.Echo "没运行"
    End If
    Set objWMIService = Nothing
    Set colProcessList = Nothing
    Wscript.quit
  • 相关阅读:
    java多线程-阻塞队列BlockingQueue
    java多线程-ThreadLocal
    JZ-C-26
    JZ-C-25
    JZ-C-24
    JZ-C-23
    JZ-C-22
    JZ-C-21
    JZ-C-20
    JZ-C-19
  • 原文地址:https://www.cnblogs.com/abinxm/p/2041133.html
Copyright © 2011-2022 走看看