hello every one i want to kill specific process by title name coz ppl with this apps can stole my app codes also if i kill it by proccess name they can change the application process name and run it again so i use to kill app by title coz title can't be changed so i use this code
Process[] processes = Process.GetProcesses(); foreach (Process process in processes) { if (process.MainWindowTitle.Contains("Spy")) { if (!process.HasExited) process.Kill(); }
to kill all proccess with title spy and it's works very good but it's work only for one time so if i use it 1 time i can't use it again i have to close full application and run it again to use it one more time so wat is the problem with code so i can use it on timer and run all time when my app is working and kill the app if started at any time i hope i found help here and thx in advance
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)