April 30th, 1999, 05:40 PM
I'm trying to set a system variable from a C++ program, the same way SET VARIABLE= will do in dos.
|
Click to See Complete Forum and Search --> : Anyone know how to set command/system variables April 30th, 1999, 05:40 PM I'm trying to set a system variable from a C++ program, the same way SET VARIABLE= will do in dos. Paul McKenzie April 30th, 1999, 05:50 PM Check out: SetEnvironmentVariable() GetEnvironmentVariable() Regards, Paul Mckenzie May 1st, 1999, 08:51 PM Paul, I found Get/SetEnvironmentVariable() are only good while the thread of the program is running - once the program ends, the command level variable settings are reset. Do you have any ideas on how to return/set a command variable (ie. errorlevel) which persist after the c+ program terminates? codeguru.com
Copyright Internet.com Inc., All Rights Reserved. |