Hi All
Can anyone please share the steps to kill all the process?
Thanks
Krishnakumar
Hi All
Can anyone please share the steps to kill all the process?
Thanks
Krishnakumar
You can use Kill Process activity

You just have to pass the name of the process what you wan to kill, let’s say if you want to close all the chrome browsers that are open use this

Thanks,
Prankur
@Krishnakumar149 Try this.
Use Get Processes Activity which have a outcome of array of processes . Then Iterate Through the variable out from the activity and used use kill process with in the for each loop and pass the input in the kill process activity process text box to kill all the open processes.
Cheers
To kill a process you need to make the two following steps:

finally see below example xaml file for terminating internet explorer.
Main.xaml (4.2 KB)
Hope it helps,
Regards,
Reda
Hi Reda
Thanks for your quick help. In-case, we have many process are running at the same time. Do we have to drag multiple kill process at the time? Kindly advise.
Thanks
Krishnakumar
Thanks for your e-mail. Grateful if you could provide any sample xaml for this.
Thanks
Krishnakumar
Hi Prankur
Thanks for your kind help.
Thanks
Krishnakumar
Please use
item.ProcessName
Also, use EXCEL in uppercase and in For each loop argument type must be
System.Diagnostics.Process
Thanks,
Prankur
See above post, I mentioned to change Argument Type property of For Each to
System.Diagnostics.Process
Thanks,
Prankur
Hi Prankur
PFA my xaml file. If possible kindly check and correct where needs to be changed. Thanks for your help.
multiple process.xaml (7.1 KB)
@Krishnakumar149 Instead of using item.tosting use item.ProcessName in If statement and
in Kill Process activity property , You are passing “Excel” instead of this pass item.ProcessName
Hello @Krishnakumar149
Please check attached xaml file and replace with your. Made changed: Changed Item type in for Each loop and if condition.
It is working for me now.multiple process.xaml (7.2 KB)
Hello,
Try using a kill process activity and configure a process name.
That should help you