Created
July 3, 2014 17:41
-
-
Save dsjt/eb8b44124fa5100b435a to your computer and use it in GitHub Desktop.
This file contains hidden or 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 | |
set service_name=emacs | |
tasklist | find /i "%service_name%" | |
if %errorlevel%==0 ( | |
echo 1 | |
start emacsclientw something | |
) Else ( | |
echo 2 | |
start runemacs | |
) | |
:End |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment