Created
December 21, 2021 18:08
-
-
Save djraw/f6e87817319555d1e46b312beda849f9 to your computer and use it in GitHub Desktop.
Batch to replace notepad.exe withh Notepad++Portable, run from exe location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
cd /d "%~dp0" | |
echo. | |
echo. | |
pause | |
cd /d "%~dp0" | |
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Image File Execution Options\notepad.exe" /v "Debugger" /d "\"%~dp0Notepad++Portable.exe\" -notepadStyleCmdline -z" /f | |
cls | |
echo. | |
echo. | |
pause |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment