|
-
Apr 17th, 2013, 02:51 PM
#9
Thread Starter
Hyperactive Member
Re: [RESOLVED] VS 2012 Express: Check for Instance of App Before Running
dday9, thanks again. But I may have jumped the gun a bit. I thought this was working but I can see that it's actually still bringing up more than one instance of my app. So let me be sure about this one line of code:
Code:
If pros.ProcessName = "CallLog(06).exe" Then
When I check the task manager the actual name in the process list is
I tried using a mask CallLog* but that didn't work either. Is there something else that I'm missing...? I've been trying to trace this by stepping through it but the For Each loop seems to only execute once, and one point the variable pros.ProcessName = "explorer" but then away she goes into the main part of the program. I never see the processes all listed one by one in the watch window as I was anticipating.
UPDATE: I think what I'm finding is that this is not going to work. If there is no instance of the app running in the first place, it comes up only to find itself running, thus it kills itself and doesn't run at all. Still trying to figure this one out.
Last edited by Vladamir; Apr 17th, 2013 at 04:14 PM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|