Skip to content

Instantly share code, notes, and snippets.

@haeky
Created July 25, 2013 14:09
Show Gist options
  • Save haeky/6080033 to your computer and use it in GitHub Desktop.
Save haeky/6080033 to your computer and use it in GitHub Desktop.
Check if a program is running in command line
tasklist /FI "IMAGENAME eq App.exe" 2>NUL | find /I /N "App.exe">NUL
if "%ERRORLEVEL%"=="0" echo Running !
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment