How can I specify the actual file to process using the Run command in Notepad++. I want for example run pdflatex using the actualfile as input, or the cs compiler, etc. Using the entire path isn't practical, it must works with any actual file.
You can automatically add the current file using a variable in the execution string:
C:\temp\test.exe "$(FULL_CURRENT_PATH)"
The list of available variables is nowhere documented, but you can see it in the source code.
FULL_CURRENT_PATH
CURRENT_DIRECTORY
FILE_NAME
NAME_PART
EXT_PART
CURRENT_WORD
NPP_DIRECTORY
NPP_FULL_FILE_PATH
CURRENT_LINE
CURRENT_COLUMN
来源:https://stackoverflow.com/questions/4614608/execute-commands-with-notepad