Discussion Locked

disable program from executing twice

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

I have a few simple VB6 programs but 1 major program that I am needing to make sure it is never running twice.
For some reason randomly it will continue to run in the back ground and the when it is executed again it duplicates everything it is doing.
Also I have some techs that aren't the most efficient and tend to just start up the programs when they are already running.

so all I need is a way that when the program is ran it will check and make sure there is no other instance of it running in the back ground or anywhere.

3 replies

by blillie

There is a way to just check windows to see what programs are running using the windows API... wish I could remember the exact syntax, but I know it exists... sorry I couldnt be more helpful...

This discussion is closed to new replies.