Welcome!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

SignUp Now!

SetEVariable?

May
12,846
164
This can't be right (from TakeCmd.h).
Code:
int  WINAPI SetEVariable( LPTSTR pszVariable );
/*
    Set / delete an environment variable
*/

Is it like SetEnvironmentVariable ... a second string on NULL to delete?
 
Never mind, I got it ("Var=Value" or "Var=").

But I'm having a problem. I use Command(L"SETLOCAL", 0) and Command(L"ENDLOCAL", 0) in a plugin command and environment variables that I set in between are still there later. Doesn't SETLOCAL work in this situation?

P.S., Is SetEVariable interchangeable with SetEnvironmentVariable?
 
Never mind. I got that one too. I had the ENDLOCAL on the wrong side of a label. So it's now working (and with SetEnvironmentVariable).
 
Back
Top