Created
July 25, 2013 14:09
-
-
Save haeky/6080033 to your computer and use it in GitHub Desktop.
Check if a program is running in command line
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
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