How to kill session


#1

hi

i am very new to RPA, how to set up a file which will kill process , like closing excel or doing end process tree for an any .exe


#2

@sarfarazp, Refer this,

We have lot of related answers in forum as well
Regards,
Dominic :slight_smile:


#3

Hi sarfarazp,

Use “Kill Process” activity, set “Process Name” property with the name of the process which you want to kill, in task manager find your process in Processes tab then right click on the name and select “Go to details” , you will get the process name, it should be like processname.exe.

Reg,
Sarthak


#4

If you want to kill excel application you can use EXCEL.EXE in process name


#5

Hi @sarthakj,

Use Kill Process activity and In Properties give Process Name as EXCEL

Regards,
Arivu


#6

Make sure you are not killing others process (if multi login)

If(proc.StartInfo.EnvironmentVariables("USERNAME") = Environment.UserName)
{
   Kill Proc
}