Running exe

G

Guest

Hey guys,

i have a problem
how do i check if the exe is running already before running it again, in other words how do i look for it in the task manager, the exe name is SampleTester.exe

NEED THE CODE ASAP PLEAS
THANX IN ADVANCE
 
C

Cor

Hi Will,

I get now a message from Tom and Herfried,.

This is the very simple solution from this.
\\\
Private mut As New Threading.Mutex(True, "myProg", mutCreated)
)
Private Sub Form1_Load(ByVal sender As Object, _
ByVal e As System.EventArgs) Handles MyBase.Load
If Not mutCreated Then Me.Close()
///
But remember that when you use this, and there can be a complete other
program with the same name as yours, that program can also not start.

Cor
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?V2lsbA==?= said:
I tried the code Herfried but it didnt work .. do you have anymore examples ?

Which code did you use where?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

Network Issue 2
Network q 1
Network Issue ... Need help 2
Running an ActiveX EXE from VB2008 app 2
Hard drive number 1
exe running from unc 3
building my .exe can it run anywhere? 11
Compiling my project 3

Top