Programmers Notepad blog explains this method
( http://untidy.net/blog/2009/11/03/repla ... n-options/ ):
"The –z tells PN to ignore the next parameter, which when using Image File Execution Options is the process name that we’re replacing – the full path to notepad.exe in this case."
This way we can do this to register Sublime Text as a Notepad.exe replacement;
reg.bat in sublime program folder:
- Code: Select all
reg add "HKLM\Software\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /t REG_SZ /d "\"%~dp0sublimetext.exe\" -z" /f
Thanks.