I'm trying to make a script that will compile C++ code using cl. Currently, I have to run vcvarsall.bat every time I run the script, because running another script seems to totally reset the NppExec console. That wastes time re-initializing the environment on every compile, which is kind of annoying. I'd like to run vcvarsall.bat once when Notepad++ starts up, and then have a separate script to actually compile, which assumes that's already been done.
So, is there a way to make a script that will run in the existing instance of the NppExec console, rather than starting a new one and resetting everything?
I've tried searching for this problem, but I couldn't find anything, or maybe I just couldn't find the right way to phrase the question. I've tried doing it using "call" on the .bat files in scripts, but it seems like NppExec doesn't understand that.