Execute commands with notepad++

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 documented here. Examples:

  • FULL_CURRENT_PATH = E:\My Web\main\welcome.html
  • CURRENT_DIRECTORY = E:\My Web\main
  • FILE_NAME = welcome.html
  • NAME_PART = welcome
  • EXT_PART = .html
  • SYS.<var> e.g.: SYS.PATH = %PATH%
  • CURRENT_WORD = <selection or word under cursor>
  • CURRENT_LINESTR = <text of the line line under cursor>
  • CURRENT_LINE = <line number>
  • CURRENT_COLUMN = <column number>
  • NPP_DIRECTORY = c:\Program Files\notepad++
  • NPP_FULL_FILE_PATH = c:\Program Files\notepad++\notepad++.exe

You can also see the source code at RunDlg.cpp line 77 and line 26

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)