Blue prism - To find if the process is currently running or not

#1
Hi - I need to identify whether "Iexplore" process is currently running or not.

I tried using the VBO ("Utility- General" --> Process Exist) to check. But eventhough the IE was closed, it kept on returning TRUE(Means process exists).

Can somebody help to get the proper way to check whether IE is opened or not, using Blueprism?

Thanks!
 
#2
I'm not sure why you were having trouble with the action in Utility - General (multiple windows open?); I have found it very reliable. Use Task Manager to verify that iexplore is not running.

If you want to try an alternative solution, create your own VBO with a "Process Exist" action. In a code stage, add the following Visual Basic code with ProcessName as an input and Status as an output.

Dim p() As Process = Process.GetProcessesByName(ProcessName)
If p.Length > 0 Then
Status = If(p(0).Responding, "Responding", "Not Responding")
Else
Status = "Not Found"
End If


Make sure you include the "System.Diagnostics" namespace in the Code Options on the Initialize page. You can provide "iexplore" as ProcessName, and compare Status to "Not Found" to see if it exists.
 

VJR

Well-Known Member
Staff member
#3
Hi Sudhakar92,

The Process Exists should work fine in this case.
Make sure you give the parameter without ".exe" in the Process Name.
Give it as "iexplore".
 
#4
Hi Sudhakar92,

The Process Exists should work fine in this case.
Make sure you give the parameter without ".exe" in the Process Name.
Give it as "iexplore".

Thanks!

I tried with and without ".exe" in the parameter. But, either way it is returning TRUE despite IE was already closed...
 
#5
I'm not sure why you were having trouble with the action in Utility - General (multiple windows open?); I have found it very reliable. Use Task Manager to verify that iexplore is not running.

If you want to try an alternative solution, create your own VBO with a "Process Exist" action. In a code stage, add the following Visual Basic code with ProcessName as an input and Status as an output.

Dim p() As Process = Process.GetProcessesByName(ProcessName)
If p.Length > 0 Then
Status = If(p(0).Responding, "Responding", "Not Responding")
Else
Status = "Not Found"
End If


Make sure you include the "System.Diagnostics" namespace in the Code Options on the Initialize page. You can provide "iexplore" as ProcessName, and compare Status to "Not Found" to see if it exists.
Thanks!,, Do we have an action(Multiple windows open?)
 

VJR

Well-Known Member
Staff member
#6
Thanks!

I tried with and without ".exe" in the parameter. But, either way it is returning TRUE despite IE was already closed...
If the Start Process is not giving the desired results then there's something different going on in the system.
Here are a few checks to see...
- Are there any processes (eg; Antivirus, etc) running in the background that makes use of the IE.
- What does the Task Manager show when sorted on iexplore...also check just one stage before using Start Process
- Are you using Virtual Desktop and is Blue Prism referring to the iexplore of some other machine.
- Was IE used by some other process and was not closed properly. Or maybe some code (in BP or any other application) creates an object of IE and is not closed properly.
These are just for starts to identify if something of this sort is causing the issue.
 
#7
Thanks!

I tried with and without ".exe" in the parameter. But, either way it is returning TRUE despite IE was already closed...
In the code I posted above, p.Length refers to the number of processes found by GetProcessesByName(ProcessName). You can modify the code as you see fit to create your own action to output this number.
 
#8
Hi - I need to identify whether "Iexplore" process is currently running or not.

I tried using the VBO ("Utility- General" --> Process Exist) to check. But eventhough the IE was closed, it kept on returning TRUE(Means process exists).

Can somebody help to get the proper way to check whether IE is opened or not, using Blueprism?

Thanks!
Hi,
After closing the IE if it shows True then click Reset and check the status if it still exists.....
 
Top