How to check if a process exist?

Hi UiPath,

How can I check if outlook is already running?

I want to use if conditional statement prior outlook operation to avoid bug. I want to avoid using the delay activity.


1 Like

instead of you checking always , if its blocker for your process just kill every time before process in init only

Hi @alvin.c.apostol26,

You can check whether Outlook is opened by using the Get Process activity.

Or you can check with element exist activity.


see this answer

basically you can put this in if activity

System.Diagnostics.Process.GetProcesses.AsEnumerable().Any(Function (prcRunning) prcRunning.ProcessName.ToLower.Trim.Equals("OUTLOOK".ToLower.Trim))

if its true, then outlook is running, otherwise its not running