Thursday 13 June 2013

Check if process is running

I had a need to check if a process was running so a quick Google gave me this which worked a treat
Thanks to  http://social.msdn.microsoft.com

Dim p() As Process

Private Sub CheckIfRunning()
    p = Process.GetProcessesByName("processName")
    If p.Count > 0 Then
     ' Process is running
    Else
        ' Process is not running
    End If
End Sub

No comments:

Post a Comment

Passwords Made Easy

Today i thought i would write about password security. As we are all aware passwords are important but we continue to use very poor password...