I have added notepad++.exe to my Path in environment variables.
Now in command prompt, notepad++.exe filename.txt opens the filename.txt. But I want to do just np filename.txt to open the file.
I tried using DOSKEY np=notepad++. But it is just bringing to the forefront an already opened Notepad++ without opening the file. How can I make it open the file?
-
7Change the executable name to anything you want. You can do this from the File Explorer!IgorGanapolsky– IgorGanapolsky2015年03月31日 18:22:09 +00:00Commented Mar 31, 2015 at 18:22
24 Answers 24
To add to josh's answer,
you may make the alias(es) persistent with the following steps,
Create a .bat or .cmd file with your
DOSKEYcommands.Run regedit and go to
HKEY_CURRENT_USER\Software\Microsoft\Command ProcessorAdd String Value entry with the name
AutoRunand the full path of your .bat/.cmd file.For example,
%USERPROFILE%\alias.cmd, replacing the initial segment of the path with%USERPROFILE%is useful for syncing among multiple machines.
This way, every time cmd is run, the aliases are loaded.
For Windows 10 or Windows 11, add the entry to HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Command Processor instead.
(For Windows 11, also note that by default the "Terminal App" points to PowerShell. Search "cmd" for command prompt.)
For completeness, here is a template to illustrate the kind of aliases one may find useful.
@echo off
:: Temporary system path at cmd startup
set PATH=%PATH%;"C:\Program Files\Sublime Text 2\"
:: Add to path by command
DOSKEY add_python26=set PATH=%PATH%;"C:\Python26\"
DOSKEY add_python33=set PATH=%PATH%;"C:\Python33\"
:: Commands
DOSKEY ls=dir /B $*
DOSKEY sublime=sublime_text $*
::sublime_text.exe is name of the executable. By adding a temporary entry to system path, we don't have to write the whole directory anymore.
DOSKEY gsp="C:\Program Files (x86)\Sketchpad5\GSP505en.exe"
DOSKEY alias=notepad %USERPROFILE%\Dropbox\alias.cmd
:: Common directories
DOSKEY dropbox=cd "%USERPROFILE%\Dropbox\$*"
DOSKEY research=cd %USERPROFILE%\Dropbox\Research\
- Note that the
$*syntax works after a directory string as well as an executable which takes in arguments. So in the above example, the user-defined commanddropbox researchpoints to the same directory asresearch. - As Rivenfall pointed out, it is a good idea to include a command that allows for convenient editing of the
alias.cmdfile. Seealiasabove. If you are in a cmd session, entercmdto restart cmd and reload thealias.cmdfile.
When I searched the internet for an answer to the question, somehow the discussions were either focused on persistence only or on some usage of DOSKEY only. I hope someone will benefit from these two aspects being together here!
Here's a .reg file to help you install the alias.cmd. It's set now as an example to a dropbox folder as suggested above.
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"AutoRun"="%USERPROFILE%\\alias.cmd"
For single-user applications, the above will do. Nevertheless, there are situations where it is necessary to check whether alias.cmd exists first in the registry key. See example below.
In a C:\Users\Public\init.cmd file hosting potentially cross-user configurations:
@ECHO OFF
REM Add other configurations as needed
IF EXIST "%USERPROFILE%\alias.cmd" ( CALL "%USERPROFILE%\alias.cmd" )
The registry key should be updated correspondly to C:\Users\Public\init.cmd or, using the .reg file:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"AutoRun"="C:\\Users\\Public\\init.cmd"
14 Comments
system function. It needs to exit if a certain variable (e.g. AUTORUN) is defined. Otherwise set up the environment (set AUTORUN=1) and set up doskey in a single pass using the macrofile option instead of running doskey.exe to define each alias.HKEY_CURRENT_USER\Software\Microsoft\Command Processor in the present day? I can't seem to find that path in regedit anymoredoskey /macrofile="%USERPROFILE%\alias". And next put the aliases in the 'alias' file, without the 'doskey' part. A solution an admin could use to restrict autorun definitions to aliases a user could self-make. Preventing users from autorunning other stuff.You need to pass the parameters, try this:
doskey np=notepad++.exe $*
Edit (responding to Romonov's comment) Q: Is there any way I can make the command prompt remember so I don't have to run this each time I open a new command prompt?
doskey is a textual command that is interpreted by the command processor (e.g. cmd.exe), it can't know to modify state in some other process (especially one that hasn't started yet).
People that use doskey to setup their initial command shell environments typically use the /K option (often via a shortcut) to run a batch file which does all the common setup (like- set window's title, colors, etc).
cmd.exe /K env.cmd
env.cmd:
title "Foo Bar"
doskey np=notepad++.exe $*
...
6 Comments
doskey npp="C:\Program Files (x86)\Notepad++\notepad++.exe" $*phpstorm . (note the dot as a shortcut for "current dir").If you're just going for some simple commands, you could follow these steps:
- Create a folder called C:\Aliases
- Add C:\Aliases to your path (so any files in it will be found every time)
- Create a .bat file in C:\Aliases for each of the aliases you want
Maybe overkill, but unlike the (otherwise excellent) answer from @Argyll, this solves the problem of this loading every time.
For instance, I have a file called dig2.bat with the following in it:
@echo off
echo.
dig +noall +answer %1
Your np file would just have the following:
@echo off
echo.
notepad++.exe %1
Then just add the C:\Aliases folder to your PATH environment variable. If you have CMD or PowerShell already opened you will need to restart it.
FWIW, I have about 20 aliases (separate .bat files) in my C:\Aliases directory - I just create new ones as necessary. Maybe not the neatest, but it works fine.
UPDATE: Per an excellent suggestion from user @Mav, it's even better to use %* rather than %1, so you can pass multiple files to the command, e.g.:
@echo off
echo.
notepad++.exe %*
That way, you could do this:
np c:\temp\abc.txt c:\temp\def.txt c:\temp\ghi.txt
and it will open all 3 files.
10 Comments
ls command within your .bat file?ls.exe should definitely work. Good point. I have used the doskey alternative though.echo. for?Alternatively you can use cmder which lets you add aliases just like linux:
alias subl="C:\Program Files\Sublime Text 3\subl.exe" $*
5 Comments
Given that you added notepad++.exe to your PATH variable, it's extra simple.
Create a file in your System32 folder called np.bat with the following code:
@echo off
call notepad++.exe %*
The %* passes along all arguments you give the np command to the notepad++.exe command.
EDIT: You will need admin access to save files to the System32 folder, which was a bit wonky for me. I just created the file somewhere else and moved it to System32 manually.
1 Comment
"notepad++.exe *somefiles*" and matching files will open. When I tried that with your suggested batch file, i.e. "npp *somefiles*", it did open an NPP instance but did not open the files I passed. Any thoughts?Also, you can create an alias.cmd in your path (for example C:\Windows) with the command
@echo %2 %3 %4 %5 %6 > %windir%\%1.cmd
Once you do that, you can do something like this:
alias nameOfYourAlias commands to run
And after that you can type in comman line
nameOfYourAlias
this will execute
commands to run
BUT the best way for me is just adding the path of a programm.
setx PATH "%PATH%;%ProgramFiles%\Sublime Text 3" /M
And now I run sublime as
subl index.html
2 Comments
setx with the PATH variable. It can truncate your path irrecoverably..cmdrc, the most convenient unix-like experience
Naturally, I would not rest until I have the most convenient solution of all. Combining the very many answers and topics on the vast internet, here is what you can have.
- Loads automatically with every instance of
cmd - Doesn't require keyword
DOSKEYfor aliases
example:ls=ls --color=auto $*
Note that this is largely based on Argyll's answer and comments, definitely read it to understand the concepts.
Note2 If you want a .bashrc-like experience, there is a new more refined version of this answer here.
How to make it work?
- Create a
macmacro file with the aliases
you can even use abat/cmdfile to also run other stuff (similar to.bashrcin linux) - Register it in Registry to run on each instance of
cmd
or run it via shortcut only if you want
Example steps:
Create a new folder in your home,
mkdir %userprofile%\cmd
(If you choose a different name, don't forget to update everything below)Create an
aliases.macfiles in the folder and optionally alsocmdrc.cmdRegister it in Registry or use with a shortcut
%userprofile%/cmd/aliases.mac
;==============================================================================
;= This file is registered via registry to auto load with each instance of cmd.
;= https://stackoverflow.com/a/59978163/985454 - how to set it up?
;================================ general info ================================
;= https://stackoverflow.com/a/59978163/985454 - how to set it up?
;= https://gist.github.com/postcog/5c8c13f7f66330b493b8 - example doskey macrofile
;========================= loading with cmd shortcut ==========================
;= create a shortcut with the following target :
;= %comspec% /k "(doskey /macrofile=%userprofile%\cmd\aliases.mac)"
aliases=echo Opening aliases in Sublime... && subl %USERPROFILE%\cmd\aliases.mac
;= ga <name> -A <n> | -B <n> | -C <n> = show surrounding lines - After, Before, Combined
ga=grep --color "1ドル" %USERPROFILE%\cmd\aliases.mac 2ドル 3ドル 4ドル 5ドル
;= Built-in Commands
ls=ls --color=auto $*
ll=ls -l --color=auto $*
la=ls -la --color=auto $*
grep=grep --color $*
;= Directories
~=cd %USERPROFILE%
cdr=cd C:\repos
cde=cd C:\repos\esquire
cdd=cd C:\repos\dixons
cds=cd C:\repos\stekkie
cdu=cd C:\repos\uplus
cduo=cd C:\repos\uplus\oxbridge-fe
cdus=cd C:\repos\uplus\stratus
;= GIT
gpu =git push origin HEAD -u
gpuf =git push origin HEAD -u --force
gpuv =git push origin HEAD -u --no-verify
gpufv=git push origin HEAD -u --force --no-verify
gc =git checkout $*
gcd=git checkout 1ドル --detach 2ドル 3ドル
gco=git checkout origin/1ドル --detach 2ドル 3ドル
gwt =git worktree $*
gwta=cd .git-worktrees && ( git worktree add 1ドル 1ドル && cp ../.env 1ドル/.env & cd 1ドル & code . )
gwtr=git worktree remove 1ドル & git branch -D 1ドル & git worktree list
;= Other
npx=npx --no-install $*
npxi=npx $*
npr=npm run $*
now=vercel $*
;= History support
history=doskey /history
h=IF ".$*." == ".." (echo "usage: h [ SAVE | TAIL [-|+<n>] | OPEN ]" && echo. && doskey/history) ELSE (IF /I "1ドル" == "OPEN" (%USERPROFILE%\cmd\history.log) ELSE (IF /I "1ドル" == "SAVE" (echo **** %date% %time% **** >> %USERPROFILE%\cmd\history.log & doskey/history >> %USERPROFILE%\cmd\history.log & ECHO Command history saved) ELSE (IF /I "1ドル" == "TAIL" (tail 2ドル %USERPROFILE%\cmd\history.log) ELSE (doskey/history))))
exit=echo **** %date% %time% **** >> %USERPROFILE%\cmd\history.log & doskey/history >> %USERPROFILE%\cmd\history.log & exit $*
;============================= :end ============================
;= rem ******************************************************************
;= rem * EOF - Don't remove the following line. It clears out the ';'
;= rem * macro. We're using it because there is no support for comments
;= rem * in a DOSKEY macro file.
;= rem ******************************************************************
;=
Notes about this macrofile's commands
aliaseswill open thealiases.macin an editor of your choice for quick adjustments
galists all or searches for a command using grep inaliases.mac
ga alias -C 1searches for "alias" and additionally prints one surrounding line
exitif you exit cmd with this command (and not the X button), it will save the session history to ahistory.logfile
houtputs current session's history
h OPENopens saidhistory.logfile in a text editor
h TAIL -2reads last two entries fromhistory.logfile
Now you have three options:
a) load manually with a shortcut
create a shortcut to
cmd.exewith the following target :
%comspec% /k "(doskey /macrofile=%userprofile%\cmd\aliases.mac)"b) In Registry, register just the
aliases.macmacrofilec) or register a regular
.cmd/.batfile to also run arbitrary commands (similar to linux's.bashrc)
see examplecmdrc.cmdfile at the bottom
note: Below, Autorun_ is just a placeholder key which will not do anything. Pick one and rename the other.
Manually edit registry at this path:
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
Autorun REG_SZ doskey /macrofile=%userprofile%\cmd\aliases.mac
Autorun_ REG_SZ %USERPROFILE%\cmd\cmdrc.cmd
Or import reg file:
%userprofile%/cmd/cmd-aliases.reg
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Software\Microsoft\Command Processor]
"Autorun"="doskey /macrofile=%userprofile%\\cmd\\aliases.mac"
"Autorun_"="%USERPROFILE%\\cmd\\cmdrc.cmd"
%userprofile%/cmd/cmdrc.cmd you don't need this file if you decided for b) above
:: This file is registered via registry to auto load with each instance of cmd.
:: HKEY_CURRENT_USER\Software\Microsoft\Command Processor
:: https://stackoverflow.com/a/59978163/985454 - how to set it up?
@echo off
doskey /macrofile=%userprofile%\cmd\aliases.mac
:: put other commands here
cls
echo Hi Qwerty, how are you today?
4 Comments
/exename=powershell.exe could make this work, like doskey /exename=powershell.exe /macrofile=%userprofile%\cmd\aliases.mac. But I did not test it. Then you could use this with a desktop shortcut. I bet there is a way to add it to registers too if we find the proper reg key. devblogs.microsoft.com/premier-developer/… Console Aliases in Windows 10
To define a console alias, use Doskey.exe to create a macro, or use the AddConsoleAlias function.
doskey
doskey test=cd \a_very_long_path\test
To also pass parameters add $* at the end: doskey short=longname $*
AddConsoleAlias
AddConsoleAlias( TEXT("test"),
TEXT("cd \\<a_very_long_path>\\test"),
TEXT("cmd.exe"));
More information here Console Aliases, Doskey, Parameters
Comments
You want to create an alias by simply typing:
c:\>alias kgs kubectl get svc
Created alias for kgs=kubectl get svc
And use the alias as follows:
c:\>kgs alfresco-svc
NAME TYPE CLUSTER-IP EXTERNAL-IP PORT(S) AGE
alfresco-svc ClusterIP 10.7.249.219 <none> 80/TCP 8d
Just add the following alias.bat file to you path. It simply creates additional batch files in the same directory as itself.
@echo off
echo.
for /f "tokens=1,* delims= " %%a in ("%*") do set ALL_BUT_FIRST=%%b
echo @echo off > C:\Development\alias-script\%1.bat
echo echo. >> C:\Development\alias-script\%1.bat
echo %ALL_BUT_FIRST% %%* >> C:\Development\alias-script\%1.bat
echo Created alias for %1=%ALL_BUT_FIRST%
An example of the batch file this created called kgs.bat is:
@echo off
echo.
kubectl get svc %*
4 Comments
Expanding on roryhewitt answer.
An advantage to using .cmd files over DOSKEY is that these "aliases" are then available in other shells such as PowerShell or WSL (Windows subsystem for Linux).
The only gotcha with using these commands in bash is that it may take a bit more setup since you might need to do some path manipulation before calling your "alias".
eg I have vs.cmd which is my "alias" for editing a file in Visual Studio
@echo off
if [%1]==[] goto nofiles
start "" "c:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\devenv.exe" /edit %1
goto end
:nofiles
start "" "C:\Program Files (x86)\Microsoft Visual Studio
11.0\Common7\IDE\devenv.exe" "[PATH TO MY NORMAL SLN]"
:end
Which fires up VS (in this case VS2012 - but adjust to taste) using my "normal" project with no file given but when given a file will attempt to attach to a running VS opening that file "within that project" rather than starting a new instance of VS.
For using this from bash I then add an extra level of indirection since "vs Myfile" wouldn't always work
alias vs='/usr/bin/run_visual_studio.sh'
Which adjusts the paths before calling the vs.cmd
#!/bin/bash
cmd.exe /C 'c:\Windows\System32\vs.cmd' "`wslpath.sh -w -r 1ドル`"
So this way I can just do
vs SomeFile.txt
In either a command prompt, Power Shell or bash and it opens in my running Visual Studio for editing (which just saves my poor brain from having to deal with VI commands or some such when I've just been editing in VS for hours).
Comments
Actually, I'll go you one better and let you in on a little technique that I've used since I used to program on an Amiga. On any new system you use, be it personal or professional, step one is to create two folders: C:\BIN and C:\BATCH. Then modify your path statement to put both at the start in the order C:\BATCH;C:\BIN;[rest of path].
Having done that, if you have little out-of-the-way utilities that you need access to simply copy them to the C:\BIN folder and they're in your path. To temporarily override these assignments, you can add a batch file with the same name as the executable to the C:\BATCH folder and the path will find it before the file in C:\BIN. It should cover anything you might ever need to do.
Of course, these days the canonical correct way to do this would be to create a symbolic junction to the file, but the same principle applies. There is a little extra added bonus as well. If you want to put something in the system that conflicts with something already in the path, putting it in the C:\BIN or C:\Batch folder will simply pre-empt the original - allowing you to override stuff either temporarily or permanently, or rename things to names you're more comfortable with - without actually altering the original.
3 Comments
Make a new folder anywhere on your system dedicated for aliases. Make a new file called whatever you want to name the alias with the .cmd extension. Write all commands in the file, such as
cd /D D:\Folder
g++ -o run something.cpp
Copy the folder's path.
Go to Settings > System > About > Advanced system settings > Environment Variables...
Now find the Path variable under the System variables section. Click on it once and click Edit. Now click New and paste the copied text.
Click OK, OK and OK. Restart your Powershell/cmd prompt and voila, you got your persistent alias! You can use the same folder to make other aliases too without needing to change Path variable again!
Comments
A little surprised that no one has thought of just using native file system functionality for this - creating a symbolic link.
Just run the command below in a directory of your choice that is already referenced in your PATH - %USERPROFILE%\AppData\Local\Microsoft\WindowsApps is where I usually make them as it is added to path out-of-the-box and this is what Windows seems to be using for the OS managed execution aliases:
mklink npp.exe "c:\Program Files\Notepad++\notepad++.exe"
This will create a symbolic link that can be executed from both GUI and command-line-based apps and will not require additional tricks to pass parameters, etc.
Comments
This solution is not an apt one, but serves purpose in some occasions.
First create a folder and add it to your system path. Go to the executable of whatever program you want to create alias for. Right click and send to Desktop( Create Shortcut). Rename the shortcut to whatever alias name is comfortable. Now, take the shortcut and place in your folder.
From run prompt you can type the shortcut name directly and you can have the program opened for you. But from command prompt, you need to append .lnk and hit enter, the program will be opened.
Comments
Since you already have notepad++.exe in your path. Create a shortcut in that folder named np and point it to notepad++.exe.
Comments
My quick and dirty solution is to add a BAT file in any directory which is already in the PATH.
Example:
@ECHO OFF
doskey dl=aria2c --file-allocation=none $*
aria2c --file-allocation=none %**
So, the first time you run "dl" it will execute the bat file, but from the second time onwards it will use the alias.
Comments
If you'd like to enable aliases on per-directory/per-project basis, try the following:
- First, create a batch file that will look for a file named
aliasesin the current directory and initialize aliases from it, let’s call itmake-aliases.cmd
@echo off
if not exist aliases goto:eof
echo [Loading aliases...]
for /f "tokens=1* delims=^=" %%i in (aliases) do (
echo %%i ^<^=^> %%j
doskey %%i=%%j
)
doskey aliases=doskey /macros
echo --------------------
echo aliases ^=^> list all
echo alt+F10 ^=^> clear all
echo [Done]
- Then, create
aliaseswherever you need them using the following format:
alias1 = command1
alias2 = command2
...
for example:
b = nmake
c = nmake clean
r = nmake rebuild
Then, add the location of
make-aliases.cmdto your%PATH%variable to make it system-wide or just keep it in a known place.Make it start automatically with
cmd.
I would definitely advise against using HKEY_CURRENT_USER\Software\Microsoft\Command Processor\AutoRun for this, because some develpment tools would trigger the autorun script multiple times per session.
If you use ConEmu you could go another way and start the script from the startup task (Settings > Startup > Tasks), for example, I created an entry called {MSVC}:
cmd.exe /k "vcvars64 && make-aliases",
and then registered it in Explorer context menu via Settings > Integration> with Command: {MSVC} -cur_console:n, so that now I can right-click a folder and launch a VS developer prompt inside it with my aliases loaded automatically, if they happen to be in that folder.
Without ConEmu, you may just want to create a shortcut to cmd.exe with the corresponding command or simply run make-aliases manually every time.
Should you happen to forget your aliases, use the aliases macro, and if anything goes wrong, just reset the current session by pressing Alt+F10, which is a built-in command in cmd.
Comments
First, you could create a file named np.cmd and put it in the folder which in PATH search list. Then, edit the np.cmd file as below:
@echo off
notepad++.exe
Comments
As doskey does not work for PowerShell or Windows 10 terminal apps, I am sharing this solution.
Demo to create an alias in Windows 10. Alias to be expected with input parameters:
com=D:\website_development\laragon\bin\php\php-8.1.2-Win32-vs16-x64/php8 D:\website_development\laragon\bin\composer/composer.phar
Procedure:
Create a folder named "scripts" in the C: drive.
Inside the scripts folder, create com.bat
Open com.bat
Example for running
composercommand with specific PHP version:@echo off set path=D:\website_development\laragon\bin\php\php-8.1.2-Win32-vs16-x64/php8 D:\website_development\laragon\bin\composer/composer.phar set args=%* set command=%path% %args% %command%Save it
Click "Start"
Search for "Edit Environment Variables"
Click "Advanced"
Add your "scripts" directory to
PATH.
Now you can run the command as its alias.
Note: If you want to add a new alias, just create a new bat file.
2 Comments
doskey does not work ... [in] Windows 10 terminal apps". doskey indeed works in the default command processor, cmd.exe hosted withconpty.exe inside Windows terminal wt. I double-checked my Windows version, which appears to be 10.0.22631.3296 (Windows 11 23H2), doskey works indeed, as it has always done in Windows 10 since no more than 4-6 months after its first GA release, when I first upgraded from Windows 7. But I may be misreading you indeed. For PS, the easiest equivalent is short functions in it's init file.I use Scoop. It, in turn, uses Shim utility to forward commands to the corresponding executables.
So it's similar to the .cmd file solution but with the Shim's .exe file.
My goal was to run podman.exe by docker command.
So I created a copy of shim .exe file (they all are in the %USERPROFILE%\scoop\shims which is in the PATH) with the appropriate name (docker.exe in my case). Plus created a configuration file for it (docker.shim) with the following content:
path = "<USERPROFILE>\scoop\apps\podman\current\podman.exe"
where <USERPROFILE> should be replaced by the content of the %USERPROFILE% variable.
If you need additional parameters for the executable, it might be provided to the Shim with the args = option.
Comments
A variation on the excellent answer by @roryhewitt is to use ps1 (Powershell) scripts instead, if the OP would be willing to use the Windows Terminal instead of cmd.exe. When using batch files, you will endure an irritating prompt (Terminate batch job (Y/N)?)whenever you need to force terminate (CTRL-C) the program that the script ran. This avoids that.
Steps 1, 2: Identical to the aforementioned answer.
Step 3:
In the C:\Aliases folder, create a Powershell script with a filename corresponding to your desired alias. In the OP's case,
np.ps1The contents of the script should simply be as follows:
notepad++.exe $args
That's it!
Comments
As I didn’t like my command line window being blocked until I close Notepad++, this is my version of it:
Create np.bat with the line:
@start "" "C:\Program Files\Notepad++\notepad++.exe" %*
This worked for me:
echo @start "" "C:\Program Files\Notepad++\notepad++.exe" %* > np.bat
Move the file to C:\Windows\System32. (Typically requires admin privileges.)
Comments
i have very easy way for this suppose you want have alias name a for php artisan command,
follow my steps:
- create folder "my-batch-files" in path C:\Program Files\
- creat file name a.bat in this this folder you created.
- insert this codes inside a.bat file
php artisan %1 %2 %4 %5 %6 %7 %8
save file, be careful save file with .bat file not .txt
add folder you create for environment variable of the system,
- open powershell as administrator
- open environment variable and add path to system variable and path
well done, open new terminal and run a and hit enter, you see that runs php artisan
Comments
Using doskey is the right way to do this, but it resets when the Command Prompt window is closed. You need to add that line to something like .bashrc equivalent. So I did the following:
- Add "C:\Program Files (x86)\Notepad++" to system path variable
- Make a copy of notepad++.exe (in the same folder, of course) and rename it to np.exe
Works just fine!
Comments
Explore related questions
See similar questions with these tags.