Skip to content

Instantly share code, notes, and snippets.

@vankasteelj
Created November 18, 2017 22:01
Show Gist options
  • Save vankasteelj/9c2940ca0764ab11ab75aeb4f04f6511 to your computer and use it in GitHub Desktop.
Save vankasteelj/9c2940ca0764ab11ab75aeb4f04f6511 to your computer and use it in GitHub Desktop.
Single touch KeyboardVisualizerVC executable start/stop
@echo off
Set "Path=%~d0%~p0"
Set "MyProcess=KeyboardVisualizerVC.exe"
tasklist /NH /FI "imagename eq "%MyProcess%"" 2>nul |find /i "%MyProcess%" >nul
If not errorlevel 1 (
taskkill /im "%MyProcess%"
) else (
start "" "%Path%""%MyProcess%"
)
exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment