I can't find anything in the documentation that shows how to capture the result of an external process. I'm hoping that I can have an NPP exec script that can take different actions depending on the return code from a cmd /c process.
Thanks! I knew you must have included this somehow...
Yes, I checked all the documentation--I simply didn't catch EXITCODE. A bad case of reader error!
I write a lot of documentation for the things I work on so I won't have to answer a lot of questions, but, like you seem to have experienced, I find many people don't read them! :-(
Thanks for creating and maintaining such a great plug-in!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I can't find anything in the documentation that shows how to capture the result of an external process. I'm hoping that I can have an NPP exec script that can take different actions depending on the return code from a cmd /c process.
Something like this:
Of course, ERRORLEVEL isn't an environment variable (it's an internal variable), so this doesn't work.
Did you try to type "help" in NppExec's Console?
:) Sorry, could not resist to ask the most obvious question.
Seems you are talking about $(EXITCODE) here. This variable has even been used in examples in 3.8.4 of NppExec Manual.
Thanks! I knew you must have included this somehow...
Yes, I checked all the documentation--I simply didn't catch EXITCODE. A bad case of reader error!
I write a lot of documentation for the things I work on so I won't have to answer a lot of questions, but, like you seem to have experienced, I find many people don't read them! :-(
Thanks for creating and maintaining such a great plug-in!