I'm using VC, and I found several functions that can change environment variables, but they can only change the environment variables within the current thread.
But what I want is to change the whole console's environment variables, like this:
set PARA=1
add.exe PARA ; add.exe is a program written in C, and it can add one to the following parameter
echo %PARA%
What I hope to see displayed is 2
Could the experts teach me a way? Many thanks!
But what I want is to change the whole console's environment variables, like this:
set PARA=1
add.exe PARA ; add.exe is a program written in C, and it can add one to the following parameter
echo %PARA%
What I hope to see displayed is 2
Could the experts teach me a way? Many thanks!

