RE: modifying environment variables
- Posted by bensler at mail.com Mar 18, 2002
- 370 views
Thanks Brian, but I'm looking for a general purpose solution. One that will work on all platforms. In particular, I want to be able to modify %EUINC% on the fly, within my source, so I can specify a particular lib that might have a dynamic location. Dynamic definitions for the include statement would make things easier, but I'd still like to be able to modify the environment variables for other uses. Chris Brian Broker wrote: > You might start here for ideas: > http://msdn.microsoft.com/library/en-us/dllproc/prothred_89f7.asp > > -- Brian > > > Chris wrote: > > How can I modify environment variables from within my eu program? > > > > Using system, or system_exec() seems to open a new instance in order to > > set the variables. When the variables are set, the instance is closed, > > leaving me with my original environment. > > > > Chris > > > >