Helene Day <noSpam@noSpam> wrote:
I got it...
Function PrevInstance() As Boolean
If
UBound(Diagnostics.Process.GetProcessesByName(Diag nostics.Process.GetCurrent
Process.ProcessName)) > 0 Then
Return True
Else
Return False
End If
End Function
Well, that will tell you if there's another process with the same name.
It's always possible that there will be a completely *different*
process with the same name, of course. The chances of that kind of
clash happening are much lower with a named mutex, however.
--
Jon Skeet - <sk***@pobox.com>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too