Skip to content

Instantly share code, notes, and snippets.

@jongalloway
Created January 26, 2012 03:04
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 jongalloway/1680695 to your computer and use it in GitHub Desktop.
Save jongalloway/1680695 to your computer and use it in GitHub Desktop.
Chocolatey - launching apps via PowerShell
if not "%*" =="" SET args = "-argumentlist \"%*\"
powershell -command "start-process -filepath \"..\lib\sublimetext2.2.0.2165\tools\sublime_text.exe\" %args%"
@echo off
SET DIR=%~dp0%
"%DIR%..\lib\sublimetext2.2.0.2165\tools\sublime_text.exe" %*
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment