|
-
April 30th, 1999, 05:40 PM
#1
Anyone know how to set command/system variables
I'm trying to set a system variable from a C++ program, the same way SET VARIABLE= will do in dos.
-
April 30th, 1999, 05:50 PM
#2
Re: Anyone know how to set command/system variables
Check out:
SetEnvironmentVariable()
GetEnvironmentVariable()
Regards,
Paul Mckenzie
-
May 1st, 1999, 08:51 PM
#3
Re: Anyone know how to set command/system variables
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?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|