You need to look at the Process and ProcessInfo classes.
Basically get a process object, usually by searching for the desired process
by name (you can see the names in the task list). Then, call Kill() on that
process instance. There are methods provided for attempting an orderly
shutdown too, if the task has an event loop running.
--Bob
"Wilfried Mestdagh" <Wi**************@discussions.microsoft.com> wrote in
message news:A2**********************************@microsof t.com...
Hi,
I'm sorry I was not clear in my question. Anyway thanks for this reply
already. I want to kill another process wherre I know the .exe name from.
rgds, Wilfried