Hey guys,
Has anyone coded a function to know if a given binary is currently running or not ?
e.g:
Code:
if (isRunning("myExe.exe") == false) { // ... }
Thanks.
Printable View
Hey guys,
Has anyone coded a function to know if a given binary is currently running or not ?
e.g:
Code:
if (isRunning("myExe.exe") == false) { // ... }
Thanks.
You can use shared memory (QSharedMemory) or a system semaphore (QSystemSemaphore) for that. If you're interested in assuring that there is only one instance of the application running, search for QtSingleApplication or look into our wiki.