Find A Process From Collections Of Process

Hello, I try to return TRUE of FALSE based on a running process. The process I used is like this.

  1. Using Get Processes, the output save into variable currentProcess
  2. Then I assign the process, processExist = currentProcess.Contains(Of System.Diagnostics.Process(GetProcessessByName(“runningProcess”)))
    This method return an error.

Thanks before.

Hi,

Perhaps you can achieve it as the following (No need to use Get Processes activity)

processExist  = System.Diagnostics.Process.GetProcessesByName("runningProcess").Any()

Regards,

4 Likes

Thanks a lot you save my day @Yoichi

1 Like

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