Skip to content

Instantly share code, notes, and snippets.

@cd01
Created February 7, 2015 17:20
Show Gist options
  • Save cd01/6e331e319619f4e37837 to your computer and use it in GitHub Desktop.
Save cd01/6e331e319619f4e37837 to your computer and use it in GitHub Desktop.
REM Require to elevate UAC
if exist %USERPROFILE%\tools\vim\gvim.exe ftype vimfile=%USERPROFILE%\tools\vim\gvim.exe %%1
assoc .scala=vimfile
assoc .txt=vimfile
assoc .go=vimfile
assoc .vim=vimfile
assoc .py=vimfile
assoc .ps1=vimfile
assoc .bat=vimfile
assoc .sh=vimfile
if exist %USERPROFILE%\tools\IrfanViewPortable\IrfanViewPortable.exe ftype imagefile=%USERPROFILE%\tools\IrfanViewPortable\IrfanViewPortable.exe %%1
assoc .jpg=imagefile
assoc .jpeg=imagefile
assoc .gif=imagefile
assoc .png=imagefile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment