Console app run once

  • Thread starter Thread starter Guido Franzke
  • Start date Start date
G

Guido Franzke

Guest
Hello,

I have a simple console app int main() . I don't want that the user can start it two times. It must be only run once.

In Windows apps I can for example use FindWindow (I know it's not the best way to use FindWindow).

How can I prevent my console app to be started again while one instance is already running?

Thanks for help,
Guido

Continue reading...
 
Back
Top