SetEVariable?

May 20, 2008
11,045
90
Syracuse, NY, USA
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?
 
May 20, 2008
11,045
90
Syracuse, NY, USA
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?
 
May 20, 2008
11,045
90
Syracuse, NY, USA
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).