Skip to content

Instantly share code, notes, and snippets.

@dsjt
Created July 3, 2014 17:41
Show Gist options
  • Save dsjt/eb8b44124fa5100b435a to your computer and use it in GitHub Desktop.
Save dsjt/eb8b44124fa5100b435a to your computer and use it in GitHub Desktop.
@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