[Help] Check if a process is running [HeLp]

Posts 16 of 6 · Page 1 of 1
Fixed Check if a process is running Fixed
Hi.
How can i check if a process is running or not.

I want a code like this.
Code:
if (explorer) is running then
label1.text = "Running" 
else
label1.text = "Not Running" 
end if
Found it:

Code:
If Process.GetProcessesByName("explorer").Length > 0 Then

        Else
            MsgBox("HA")

        End If
I tried the code you said you found it, and I kept getting spammed by message boxes cause it couldn't find the process, although it was running...
Quote Originally Posted by Pixie View Post
I tried the code you said you found it, and I kept getting spammed by message boxes cause it couldn't find the process, although it was running...
Explorer=Desktop ._.
Quote Originally Posted by Iamazn1 View Post
Explorer=Desktop ._.
0.o So what is this supposed to do??
checks if process exist

i made a program with this code

*checks if process exist
*you can kill it :O

this is working ^^ tnx
You can also make it so you type something and it checks it

i used a label as an example because its not annoying

Button Click
Code:
If Process.GetProcessesByName(TextBox1.Text).Length > 0 Then
            Label1.Text = "Running"
            Label1.ForeColor = Color.Green
        Else
            Label1.Text = "Not Running"
            Label1.ForeColor = Color.Red
        End If
Posts 16 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

Need help?