
After saving them, you can go to Plugins -> NppExec -> Advanced Options and run it anytime Notepad++ starts, closes, or even add that script to the Plugin commands using Macros. NppExec also allows you to save your scripts. Sqlcmd -S 111.111.1.1 -U UserName -P "password" -i C:\scripts\query.sql take the output from the console and put it into the active file at the cursor.run a SQL query from the file C:\scripts\query.sql.Set the console to output_var: on, meaning we can use the output of the console.


It can be found in the menu bar at Plugins -> NppExec or just by simply hitting the F6 key (the shortcut Ctrl+ F6 will run the latest command). NppExec allows you to execute commands and scripts from a console window in Notepad++.
