|
Answer» :-? how do you close a specific active program using dos? tskill will close all of the instances - but i only want to kill one - ie. two notepad text files are open but i want to close only the FIRST....
-- i want to implement this in a C++ prog by using the system command, might MAKE THINGS easier...It's easier in C++ by using FindWindow to get the window handle and then posting a WM_QUIT message to the window.
However using CMD you might want to run: TSKILL PROCESSID by replacing the processid ID with the process id of the process you want to terminate.
Hope this helps.--- well then that project idea is toast...
well then for a secruity program like the one microsoft gives an example for in their scheduled tasks, how do you prevent it from simply being closed...
|