cplusplus
.com
TUTORIALS
REFERENCE
ARTICLES
FORUM
C++
Tutorials
Reference
Articles
Forum
Forum
Beginners
Windows Programming
UNIX/Linux Programming
General C++ Programming
Lounge
Jobs
Forum
General C++ Programming
Checking if a program is running
Checking if a program is running
Jun 17, 2014 at 7:18pm UTC
DeathAngle
(23)
I have a question, how can I check if a program is running using c++?
For example
if (notepad.exe is running) {
blah blah blah
Jun 17, 2014 at 7:25pm UTC
kbw
(9488)
Did you search?
http://msdn.microsoft.com/en-gb/library/windows/desktop/ms682623%28v=vs.85%29.aspx
Jun 17, 2014 at 7:55pm UTC
DeathAngle
(23)
Not exactly what I ment, I mean how can I target to see if a specific program is running and then if it is (or if it isint) execute something else
Jun 17, 2014 at 9:07pm UTC
NoXzema
(699)
You use that function that kbw showed you. This unfortunately requires an OS specific mechanism. If you use Linux or Mac, a different solution must be used.
Topic archived. No new replies allowed.