Last active
March 30, 2022 10:56
-
-
Save jpluimers/58a25e2926b884933fa3 to your computer and use it in GitHub Desktop.
Shows the full EXE paths of any running process with the ProcessName name.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
:: http://superuser.com/questions/768984/show-exe-path-of-running-processes-on-the-command-line-in-windows | |
if [%1] == [] goto :help | |
PowerShell (Get-Process %*).Path | |
goto :eof | |
:help | |
echo Syntax: | |
echo %0 ProcessName | |
echo Shows the full EXE paths of any running process with the ProcessName name. | |
echo Example: | |
echo %0 DevEnv | |
echo Shows the paths of running Visual Studio processes |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment