I don't know anymore. As I just did not try to kill the chrome.exe process via C #. Nothing happens. Maybe someone can tell what is wrong with my "code".
First I create an array of all processes, then I go around this array and if the process name matches the required string, I kill it.
Process[] listprosecc = Process.GetProcesses(); foreach (Process oneproc in listprosecc) { string ProsessName = oneproc.ProcessName; ProsessName = ProsessName.ToLower(); if (ProsessName.Equals("chrome.exe")) { oneproc.Kill(); MessageBox.Show("Я дошел!!!"); } }
ifcomes? - Ev_Hypervar pr = prss.Select(p => p.ProcessName.Contains("chrome")).Count();I get 141 of such a process :) - Bulson"chrome", without.exe. - VladD