Skip to content

Instantly share code, notes, and snippets.

@rubyu
Created August 30, 2012 04:16
Show Gist options
  • Save rubyu/3522270 to your computer and use it in GitHub Desktop.
Save rubyu/3522270 to your computer and use it in GitHub Desktop.
app_restart.bat
@echo off
:: app_restart.bat
:: %1 path of application
tasklist | findstr %~nx1
if errorlevel 0 taskkill /f /im %~nx1
start "" %~f1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment