I want to make it so that if I enter "notepad" in a command line, the address bar, or in the start menu search, it will open Notepad++ instead of Notepad.
Is there a simple, safe, stable way to implement this?
I want to make it so that if I enter "notepad" in a command line, the address bar, or in the start menu search, it will open Notepad++ instead of Notepad.
Is there a simple, safe, stable way to implement this?
http://www.binaryfortress.com/NotepadReplacer/ is the simplest way I found years ago.
Files started from the command line etc. that don't have a path specified will use the path specified in your $PATH variable. The order that paths appear in the $PATH variable matter - the ones at the front are tried first.
So if you have a file named notepad.bat
in your path, AND that path appears in your $PATH before C:\Windows\System32
, it will get called before notepad.exe
.
So:
notepad.bat
. The only line in it should be: notepad++
.C:\Scripts
).path C:\Scripts;%PATH%
If you have notepad++ installed on your computer, you can go into the directory file where notepad++ is installed on your computer and drag the Icon onto your taskbar in windows so that you can have a link to the program whenever your computer is running.