Skip to content

Instantly share code, notes, and snippets.

@outcoldman
Last active January 2, 2016 09:59
Show Gist options
  • Save outcoldman/8286933 to your computer and use it in GitHub Desktop.
Save outcoldman/8286933 to your computer and use it in GitHub Desktop.
Place this file under %WINDIR% (or any other folder defined in Windows PATH variable).
@echo off
SET Sublime_Executable=
IF DEFINED ProgramFiles(x86) (
set Sublime_Executable="%ProgramW6432%\Sublime Text 3\sublime_text.exe"
) ELSE (
set Sublime_Executable="%ProgramFiles%\Sublime Text 3\sublime_text.exe"
)
start "" %Sublime_Executable% %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment