Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to make notepad++ function like regular notepad in cmd?

I like using the command prompt to write and compile java. To write the code I enter this in cmd:

notepad MyJavaClass.java

This opens notepad and asks if I want to create new file (If it doesn't already exist). The problem for me is that I like using notepad++ as a text editor because it has nice features.

So my question is:

How do I make it so that I can type "notepad++ MyJavaClass.java" in cmd and have notepad++ open up, ready for editing without having to type the full path of notepad++?

I tried to simply place the notepad++.exe file in the System32 folder, but cmd doesn't recognize the command.

Sorry for the noobiness :)

like image 935
Dziugas Avatar asked Nov 24 '14 14:11

Dziugas


1 Answers

Notepad++ is a known app, so if you launch it with the START builtin, it'll work without having to modify the PATH.

start notepad++ MyJava.java
like image 178
mojo Avatar answered Oct 06 '22 00:10

mojo