In need a simple code that will check if proccesname is running, and if it does it terminate the c++ exefile, but if it dont it will continue to the code i want to run, can this be done? please somone help me out only thing i need to complete my project
tom23
0
Newbie Poster
Recommended Answers
Jump to PostIn need a simple code that will check if proccesname is running, and if it does it terminate the c++ exefile, but if it dont it will continue to the code i want to run, can this be done?
You might state the operating system that you are running.
Jump to PostI'm not a C++ coder, but i did something similar in python using WMI.
Or if you can call the command line from C++ you could use "tasklist", and check if its running.
This is windows only though.
Jump to PostYes it is completely possible. First, stop flooding the forum with useless messages. When someone logs in that can answer the question, they will answer. No need to badger us when no one is logged on. Second, use sentences. Don't run all your sentences together. In order for us to …
All 9 Replies
mitrmkar
1,056
Posting Virtuoso
Tech B
48
Posting Whiz in Training
tom23
0
Newbie Poster
tom23
0
Newbie Poster
tom23
0
Newbie Poster
WaltP
2,905
Posting Sage w/ dash of thyme
Team Colleague
tom23
0
Newbie Poster
Tech B
48
Posting Whiz in Training
tom23
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.