Last active
February 14, 2018 13:48
-
-
Save gologius/e7b0fa95a2da6c95ad5f978cab45dcc9 to your computer and use it in GitHub Desktop.
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
rem 通常タイプ | |
tasklist | find "firefox.exe" > NUL | |
if ERRORLEVEL 1 ( | |
echo not found | |
) else ( | |
echo not found | |
) | |
rem 無駄な出力をしないタイプ | |
@tasklist | find "firefox.exe" > NUL | |
@if errorlevel 1 ( | |
echo not found | |
@pause | |
) else ( | |
echo found | |
@pause | |
) | |
echo finish |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment