4

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?

1
  • Notepad is a pre installed program that comes with windows, there is no path and it can only run notepad because it is in the same folder as cmd.exe i'm not sure about changing the name.
    – Antp
    Oct 30, 2014 at 1:31

3 Answers 3

3

http://www.binaryfortress.com/NotepadReplacer/ is the simplest way I found years ago.

1

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:

  • Create a file called notepad.bat. The only line in it should be: notepad++.
  • Place it in a folder (e.g., C:\Scripts).
  • Add that folder to the BEGINNING of your path: path C:\Scripts;%PATH%
2
0

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.

1
  • While this might be helpful, the question asks how to open Notepad++ by typing "Notepad" in a command line.
    – Blackwood
    Apr 22, 2018 at 13:40

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .