Your comments

https://gist.github.com/jcppkkk/8330314

Improved Version,
Open File with Sublime Text,
Open File with Sublime Text as Admin,
Open Folder with Sublime Text.
Execute .bat Script where Sublime Text installed.

A portable way to do it, write a ReplaceNotepad.bat:

put ReplaceNotepad.bat with sublime_text.exe and execute it.

@echo off

@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2"         /t REG_SZ /v "" /d "Open with Sublime"   /f

@reg add "HKEY_CLASSES_ROOT\*\shell\Open with Sublime Text 2\command" /t REG_SZ /v "" /d "\"%~dp0sublime_text.exe\" \"%%1\"" /f

pause