01-06-2008, 04:42 PM
int pid=ProcessNameToId2("notepad" 0 1)
if(pid)
,if(mes("Notepad is running. Terminate it?" "" "YN?"))
,,ShutDownProcess pid 1
else
,if(mes("Notepad is NOT running. Run it?" "" "YN?"))
,,run "notepad"Terminating a process is not recommended. Do it only if you don't have other choices.
