# Kill process issue

**URL:** <https://forum.uipath.com/t/kill-process-issue/305077>\
**Category:** Studio\
**Tags:** sap, system, activities\
**Created:** [April 8, 2021, 8:19am UTC](https://forum.uipath.com/t/kill-process-issue/305077 "2021-04-08T08:19:27Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 8:19am UTC](https://forum.uipath.com/t/kill-process-issue/305077/1 "2021-04-08T08:19:27Z")

</div>

Hi All,

I am using Kill process activity to close chrome browser and SAP Logon 750 application. I used the process name as it is mentioned in the task manager. But this is not working.

Please suggest.

Thanks and Regards,  
Ankita Verma.

---

<div class="post-metadata">

**Author:** ![mukeshkala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mukeshkala/32/523935_2.png) [@mukeshkala](https://forum.uipath.com/u/mukeshkala)\
**Post date:** [April 8, 2021, 8:21am UTC](https://forum.uipath.com/t/kill-process-issue/305077/2 "2021-04-08T08:21:46Z")

</div>

The Process Name Should not include .exe

e.g - to kill internet explorer (iexplore.exe) - In the Kill Process we Put “iexplore” in the Process Name

_–_  
_Mukesh_

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 8:22am UTC](https://forum.uipath.com/t/kill-process-issue/305077/3 "2021-04-08T08:22:40Z")

</div>

I am not including .exe @mukeshkala

---

<div class="post-metadata">

**Author:** ![prasath\_S](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/prasath_s/32/290219_2.png) [@prasath\_S](https://forum.uipath.com/u/prasath_S)\
**Post date:** [April 8, 2021, 8:23am UTC](https://forum.uipath.com/t/kill-process-issue/305077/4 "2021-04-08T08:23:15Z")

</div>

Is any error coming or its not closing the application

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 8:24am UTC](https://forum.uipath.com/t/kill-process-issue/305077/5 "2021-04-08T08:24:27Z")

</div>

No error. I simply tested the flow by opening the application but the bot did nothing and moved forward which is letting to exceptions. @prasath_S

---

<div class="post-metadata">

**Author:** ![prasath\_S](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/prasath_s/32/290219_2.png) [@prasath\_S](https://forum.uipath.com/u/prasath_S)\
**Post date:** [April 8, 2021, 8:25am UTC](https://forum.uipath.com/t/kill-process-issue/305077/6 "2021-04-08T08:25:48Z")

</div>

what is the process name you are giving…

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [April 8, 2021, 8:26am UTC](https://forum.uipath.com/t/kill-process-issue/305077/7 "2021-04-08T08:26:06Z")

</div>

@mannu.1996.08  
have a look here on killing save and defensive a process:

> [@KillAllProcesses give me an exception](https://forum.uipath.com/t/killallprocesses-give-me-an-exception/172606/15):
>
> @Chand we encountered similar issues and after an RnD we worked out apattern close to your scenario: Set up a String List with the process names that get to kill. This can be done also with values from the config [grafik] here we go with OUTLOOK, EXCEL, iexplore then try to retrieve for each process name the process as long all are killed: for each is iterating over process name to kill list while is killing the particular process so often till no one longer is existing We did…

about the process name which application is to handle?

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 8:29am UTC](https://forum.uipath.com/t/kill-process-issue/305077/8 "2021-04-08T08:29:35Z")

</div>

“SAP Logon for Windows(32 bit)(2) ,chrome”. This is what i saw in task manager so used the same names. @prasath_S .

---

<div class="post-metadata">

**Author:** ![mukeshkala](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mukeshkala/32/523935_2.png) [@mukeshkala](https://forum.uipath.com/u/mukeshkala)\
**Post date:** [April 8, 2021, 8:31am UTC](https://forum.uipath.com/t/kill-process-issue/305077/9 "2021-04-08T08:31:26Z")

</div>

![image](https://global.discourse-cdn.com/uipath/original/3X/3/6/363bf84e7cf8d05971d8278d12f257192858cd11.png)

One alternative Can be using the TaskKill.exe to kill the Process -  
Above is to Kill the Outlook.exe

_–_  
_Mukesh_

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 8:31am UTC](https://forum.uipath.com/t/kill-process-issue/305077/10 "2021-04-08T08:31:48Z")

</div>

Thank you for this xaml file. I will check and implement this same and will update you.  
Application to handle is SAP Logon 750 and a web application (service desk application) in chrome browser. @ppr

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 8:32am UTC](https://forum.uipath.com/t/kill-process-issue/305077/11 "2021-04-08T08:32:37Z")

</div>

Sure. Thank you. I will try this alternative and will update you. @mukeshkala

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [April 8, 2021, 8:38am UTC](https://forum.uipath.com/t/kill-process-issue/305077/12 "2021-04-08T08:38:27Z")

</div>

![grafik](https://global.discourse-cdn.com/uipath/original/3X/a/8/a82cc1fd5c3e7721f89c684aeb0c14e291804321.png)

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 8:39am UTC](https://forum.uipath.com/t/kill-process-issue/305077/13 "2021-04-08T08:39:40Z")

</div>

is this the expression that you are asking me to use? @ppr

---

<div class="post-metadata">

**Author:** ![ppr](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/ppr/32/464097_2.png) [@ppr](https://forum.uipath.com/u/ppr)\
**Post date:** [April 8, 2021, 8:40am UTC](https://forum.uipath.com/t/kill-process-issue/305077/14 "2021-04-08T08:40:58Z")

</div>

No, I verified for you the different process names. The yellow marks are the process names for sap and chrome which are to be used for the kill process

---

<div class="post-metadata">

**Author:** ![Craig\_Bannerman](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/craig_bannerman/32/136065_2.png) [@Craig\_Bannerman](https://forum.uipath.com/u/Craig_Bannerman)\
**Post date:** [April 8, 2021, 8:49am UTC](https://forum.uipath.com/t/kill-process-issue/305077/15 "2021-04-08T08:49:42Z")

</div>

You could also do taskkill via PowerShell.  
 ![image](https://global.discourse-cdn.com/uipath/original/3X/3/9/396e8e150a76cc63ad115a37ee3bf80f982b5f94.png)

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 9:25am UTC](https://forum.uipath.com/t/kill-process-issue/305077/16 "2021-04-08T09:25:49Z")

</div>

ok. Thank you. Will try this one and other suggested ways here as well. Let me see what works. @Craig_Bannerman

---

<div class="post-metadata">

**Author:** ![Craig\_Bannerman](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/craig_bannerman/32/136065_2.png) [@Craig\_Bannerman](https://forum.uipath.com/u/Craig_Bannerman)\
**Post date:** [April 8, 2021, 11:02am UTC](https://forum.uipath.com/t/kill-process-issue/305077/17 "2021-04-08T11:02:37Z")

</div>

No worries! Never noticed the other recommendation.

But as @mukeshkala recommended, adding the “/f” after the exe name will add an additional force close encase there was any “Are you sure you want to close?” Popups appear.  
So I’d recommend ensuring you include the /f

---

<div class="post-metadata">

**Author:** ![mannu.1996.08](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/mannu.1996.08/32/176617_2.png) [@mannu.1996.08](https://forum.uipath.com/u/mannu.1996.08)\
**Post date:** [April 8, 2021, 12:44pm UTC](https://forum.uipath.com/t/kill-process-issue/305077/19 "2021-04-08T12:44:51Z")

</div>

ok. Noted @ Craig\_Bannerman

---

<div class="post-metadata">

**Author:** ![Craig\_Bannerman](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/craig_bannerman/32/136065_2.png) [@Craig\_Bannerman](https://forum.uipath.com/u/Craig_Bannerman)\
**Post date:** [April 15, 2021, 11:00am UTC](https://forum.uipath.com/t/kill-process-issue/305077/20 "2021-04-15T11:00:39Z")

</div>

Hi @mannu.1996.08 - did you have any joy? Don’t forget to mark the solution as solved if you did 🙂

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/uipath/user_avatar/forum.uipath.com/system/32/182466_2.png) [@system](https://forum.uipath.com/u/system)\
**Post date:** [April 20, 2021, 3:10pm UTC](https://forum.uipath.com/t/kill-process-issue/305077/21 "2021-04-20T15:10:00Z")

</div>

Closed on April 20, 2021, 3:10pm UTC

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.
