I was wondering if there was a way to stop a program from opening if that same program was already running. I'm thinking you would do this from looking at a process ID for the original .exe but does windows always generate a unique process ID that I could check to see if it existed to stop the duplicate .exe from opening?
Would this be the correct way of doing this?