0

Guys I need to users close programm when I need it. So I can kill process by its name

 foreach (Process proc in Process.GetProcessesByName("eDoc"))
                {
                    proc.Kill();
                }

What should I do to kill process using path

\\hp\MyJob\eDoc.exe 

Thanks so much

Dyomp
  • 43
  • 5
  • `Process `will kill only on local machine, you need to connect to the remote computer and invoke the kill command there, I think you do with via WMI – styx Dec 03 '19 at 07:38
  • Maybe you find the answer here: https://stackoverflow.com/questions/25727323/kill-process-on-remote-machine?rq=1 – keuleJ Dec 03 '19 at 08:29
  • Does this answer your question? [Kill process on remote machine](https://stackoverflow.com/questions/25727323/kill-process-on-remote-machine) – Fildor Dec 03 '19 at 10:11

0 Answers0