Run a single line command in a separate directory
When your Notepad++ is installed in C:\Program Files\NPP
and you want to execute a program that is located in C:\Program Files\Prg
, named abc.exe
you can do this using the following command:
..\Prg\abc.exe
You can test this by running a cmd.exe prompt, and executing
cd C:\Program Files\NPP
..\Prg\abc.exe
Another way of executing the abc.exe is by using the full path:
"C:\Program Files\Prg\abc.exe"
Note that you need to use "quotes" because the path contains spaces.