How to use Kill Process

You have to pass either Process or ProcessName.

For Instance if you have to Close outlook

  1. Use GetProcesses (collection) and loop it untill you get your Proccesses and kill them (multiple) using Kill Process

  1. Kill one process use Kill Process Activity and pass one of below
    process = System.Diagnostics.Process.GetProcessesByName(“OUTLOOK”) —> process
    “OUTLOOK” —> processname
18 Likes