Click to See Complete Forum and Search --> : killing a process on my pc


laptop_01
February 4th, 2004, 07:40 AM
I wrote a GUI that displays running processes on my PC. I can select the process ID from the GUI but I cant figure out how to kill it.

Any one know the command to do so in C#.

There is a kill command but it takes no argument. Say I have 2 WORD applications running and I got 2 IDs, I want to be able to kill one and not the other.

Thanks very much

Acephalus
February 4th, 2004, 07:53 AM
Process.GetProcessById(1308).Kill();

laptop_01
February 4th, 2004, 08:02 AM
Acephalus

Thanks a lot.