Unfortunately myvar will disapear when the program ends. (It will be there for programs you call using system within the same program.) If you want to change your environment you will either have to change autoexec.bat on win9X or by changing the environment under System in the Control Panel on winNT/2k.$ENV{myvar}="myvalue"; system("set");
--
flounder
In reply to Re: Setting Env Variable question
by flounder99
in thread Setting Env Variable question
by blackadder
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |