Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
End process, find out, if process is running?
#2
Code:
Copy      Help
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.


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)