Skip to content

Instantly share code, notes, and snippets.

@kogir
Created May 9, 2012 22:14
Show Gist options
  • Save kogir/2649310 to your computer and use it in GitHub Desktop.
Save kogir/2649310 to your computer and use it in GitHub Desktop.
Github Launcher
@ECHO OFF
REM Launches Github For Windows and then deletes the Git Shell desktop shortcut.
REM We don't want our pesky window to be visible the whole time.
IF "Continue"=="%1" (
GOTO Continue
)
START "Github Launcher" /MIN %0 Continue
GOTO EXIT
:Continue
ECHO Launching Github For Windows
START github-windows://
REM Wait a bit for the link to be created.
TIMEOUT /T 10 /NOBREAK
REM Delete the link.
DEL "%USERPROFILE%\Desktop\Git Shell.lnk"
:EXIT
EXIT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment