Skip to content

Instantly share code, notes, and snippets.

@jpluimers
Last active March 30, 2022 10:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpluimers/58a25e2926b884933fa3 to your computer and use it in GitHub Desktop.
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.
@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