cancel
Showing results for 
Search instead for 
Did you mean: 

Kill Process Failed

Jessie_Jaye_IIQ
Level 3
​Hello All,

I am currently facing a challenge wherein BP isn't properly killing the process during a close down.

I've noticed that this happens when there is an unexpected pop-up message from an application (this pop-up message is sporadic and may be due to performance issues of the application), instead of killing processes like Outlook, I.E, etc, it skips that part but continues to send the termination message anyway.

I was advised to try and use the Utitlity - Environment - Start Process with the following parameters:
Application: "taskkill"
Arguments: "/im Notepad.exe /f" (Notedpad.exe is just a sample as I am not sure if I am allowed to list the name of the application).

Can anyone share their thoughts?

------------------------------
Jessie Jaye II Quema
RPA Configurator
HSBC
Asia/Hong_Kong
------------------------------
6 REPLIES 6

VivekGoel
Level 10
Use: Utility- Environment--> Kill Process--> Give the process name in the input parameter.

16269.png


------------------------------
Vivek Goel
RPA Architect
Asia/Singapore
https://www.rpatools.com/
"If you like this post, please press the "Recommend" Button.
------------------------------

Hello Vivek,

Thank you for responding. We are using Utility Environment - Kill Process​ however I've noticed that it does not always kill the process when there is an unexpected pop-up message. We are thinking of adding the unexpected pop-up message however it is sporadic hence we unable to spy.

Would you be able to help with Utility Environment - Start Process - Taskkill?

------------------------------
Jessie Jaye II Quema
RPA Configurator
HSBC
Asia/Hong_Kong
------------------------------

Hi Jessie,

Is this pop-up message a separate task in manager? If so You can always try to kill it prior to killing actual application.

Best regards,
Michal

------------------------------
Michal Szumski
RPA developer
Rockwell Automation
Europe/Warsaw
------------------------------

​Hi Michal,

I believe so, however as it is sporadic. We are unable to simulate/spy/check in the UAT/DEV environment

------------------------------
Jessie Jaye II Quema
RPA Configurator
HSBC
Asia/Hong_Kong
------------------------------

sumire
Level 8

Hi,

I faced same problem, so I created object and wrote code in code stage.
It kills specified processes completely.
input argument is 'ProcessName'.

Dim p As New System.Diagnostics.Process()
p.StartInfo.FileName = System.Environment.GetEnvironmentVariable("ComSpec")
p.StartInfo.Arguments = "/c taskkill /F /T /FI ""username eq %USERNAME%"" /IM " & ProcessName
p.StartInfo.UseShellExecute = false
p.StartInfo.CreateNoWindow = true
p.Start()
p.WaitForExit()
p.Close()

hope it helps you

------------------------------
Mitsuko
Asia/Tokyo
------------------------------
------------------------------
Mitsuko
Asia/Tokyo
------------------------------

Anonymous
Not applicable
you can have a bat file running in the background that is killing all pop-ups. The bat can be started by Resource Scheduler. You will need to know at least some info like process name, or status of the app if is not working on working to kill it.

------------------------------
Cohen
RPA Developer

Romania
------------------------------