Hi guy, i use this code to check if an aplication is still running
VB Code:
Public Function isRunning(ByVal Process As String) As Boolean Dim objWMIService, colProcesses Set objWMIService = GetObject("winmgmts:") Set colProcesses = objWMIService.ExecQuery("Select * from Win32_Process where name='" & Process & "'") If colProcesses.Count Then isRunning = True Else isRunning = False End If End Function
but it's kindda slow to open the winmgmts and use queury to execute to see if the process is still there. i jst want to know if you guys have a better way to check for the process




Reply With Quote