Skip to main content
Solved

Check if Application is Running with Wildcard Path String

  • December 11, 2023
  • 2 replies
  • 168 views

LoganPrice
Most Valuable Pathfinder
Forum|alt.badge.img+12

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

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!

View original
Did this topic help answer your question?

2 replies

Abhay Naik
Forum|alt.badge.img+7
  • Navigator | Tier 3
  • 98 replies
  • Answer
  • December 11, 2023

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!


LoganPrice
Most Valuable Pathfinder
Forum|alt.badge.img+12
  • Author
  • Most Valuable Pathfinder
  • 77 replies
  • December 11, 2023

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


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings