Skip to content

Instantly share code, notes, and snippets.

@dshipp
Last active August 29, 2015 14:01
Show Gist options
  • Save dshipp/9b60ac20b020d26eb249 to your computer and use it in GitHub Desktop.
Save dshipp/9b60ac20b020d26eb249 to your computer and use it in GitHub Desktop.
Kills all command processes (agressive) and restarts the processes for Selenium hub, node and PhantomJS, without killing itself!
title restart-all
call taskkill /F /t /IM cmd.exe /fi "Windowtitle ne restart-all"
call taskkill /F /IM cmd.exe /fi "Windowtitle ne restart-all"
call taskkill /F /IM iexplore.exe
call taskkill /F /IM IEDriverServer.exe
start cmd.exe /k hub.bat
start cmd.exe /k node.bat
start cmd.exe /k phantomjs.bat
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment