Check if a program is running by executable path

Question:

In powershell, how do I check if a program is running by using the full path of the program executable? Or do I need to parse the path to get the process name?

Thanks.

EDIT:

I need to know if the executable “C:\My Temporary Programs\Test 1.exe” is running.

Answer:

Try this:

So you can do something like:

Source:

Check if a program is running by executable path by licensed under CC BY-SA | With most appropriate answer!

Leave a Reply