@Alan-Wynne said in Local active Variables:
it does require npp to be running with admin priviladges though…
I use NppExec daily to do similar tasks (in fact, many of the posts that mention gcc and NppExec in the same post in this Forum are my equivalent of the script you just posted), but I have never had to have Admin privileges to save or run an NppExec script.
(Though, admittedly, you might need admin privileges to install the plugin – but once you’ve installed it, you can restart Notepad++ without privileges, and the plugin works.)
But under normal usage, what you described should not require admin privileges. Possible exceptions I can think of include: 1) if the file you are compiling is protected, or (2) the directory it’s in is protected; or, (3) if it was because it wouldn’t let you save the NppExec script, then your %AppData%\Notepad++\Plugins\config\npes_saved.txt might have weird permissions.