Created
November 18, 2017 22:01
-
-
Save vankasteelj/9c2940ca0764ab11ab75aeb4f04f6511 to your computer and use it in GitHub Desktop.
Single touch KeyboardVisualizerVC executable start/stop
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
@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