Skip to content

Instantly share code, notes, and snippets.

@deizel
Created November 9, 2012 00:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save deizel/4042818 to your computer and use it in GitHub Desktop.
Save deizel/4042818 to your computer and use it in GitHub Desktop.
Application launcher
@echo off
:go
echo What do you want to close?
echo.
echo 1. [D]esign
echo 2. [W]indows
echo 3. [M]usic
echo 4. [E]ntertainment
echo 5. [G]ames
echo.
SET /P ANSWER=Choose:
if /i {%ANSWER%}=={1} (goto :design)
if /i {%ANSWER%}=={2} (goto :windows)
if /i {%ANSWER%}=={3} (goto :music)
if /i {%ANSWER%}=={4} (goto :entertainment)
if /i {%ANSWER%}=={5} (goto :games)
if /i {%ANSWER%}=={D} (goto :design)
if /i {%ANSWER%}=={W} (goto :windows)
if /i {%ANSWER%}=={M} (goto :music)
if /i {%ANSWER%}=={E} (goto :entertainment)
if /i {%ANSWER%}=={G} (goto :games)
goto :go
:design
taskkill /IM photoshop.exe
taskkill /IM zbrush.exe
taskkill /IM maya.exe
taskkill /IM 3dsmax.exe
exit /b 0
:windows
echo http://www.nirsoft.net/utils/nircmd.html
nircmd.exe win close class "CabinetWClass"
exit /b 0
:music
taskkill /IM itunes.exe
exit /b 0
:entertainment
taskkill /IM vlc.exe
exit /b 0
:games
taskkill /IM steam.exe
exit /b 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment