Check if Application is Running with Wildcard Path String

  • 11 December 2023
  • 2 replies

Userlevel 3
Badge +9

I want to create an IF action that checks if a certain application is running.


As you know, this action uses the full path to the executable in order to check if it is running:


What if I am using different runner machines, each with their own usernames in the path to the app?


I would want to wildcard the part that is variable to avoid the bot breaking.


My problem is that wildcards (*) does not seem to work in this instance. For example, if I wildcard the username like below, the bot will not register that the application is running:


What would you do to get around this?


Best answer by Abhay Naik 11 December 2023, 16:19

View original

2 replies

Userlevel 3
Badge +7

Hi @LoganPrice,

Hope you are doing well!

You can use “Get environment variable” command from “System” package. From there you will be able to store the Username in the variable. This you can use further in your if conditions and commands. This way it will be dynamic and can be used in any machine.


Hope this helps!

Userlevel 3
Badge +9

Thanks @Abhay Naik , I’ll give that a try.