Results 1 to 15 of 15

Thread: [RESOLVED] VS 2012 Express: Check for Instance of App Before Running

Threaded View

  1. #9

    Thread Starter
    Hyperactive Member Vladamir's Avatar
    Join Date
    Feb 2012
    Location
    Miami, FL
    Posts
    486

    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

    CallLog(06).exe *32
    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
  •  



Click Here to Expand Forum to Full Width