This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Function IsProcessRunning(strProcess) | |
Dim Process, strObject | |
IsProcessRunning = False | |
strObject = "winmgmts://." | |
For Each Process in GetObject(strObject).InstancesOf("win32_process") | |
If UCase(Process.name) = UCase(strProcess) Then | |
IsProcessRunning = True | |
Exit Function | |
End If | |
Next |