Running exe

  • Thread starter Thread starter Guest
  • Start date Start date
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
 
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
 
Back
Top