set shell = createobject("wscript.shell")
set sysenv = shell.environment("system")
sysenv("foobar") = "the value of foobar"
Same for "user" or "process" environments - only "system" and "user" (on non-Win9x) are persistent
and Win9x supports only "process"...
Please do not email questions - post them to the newsgroup instead.
> I tried using this, but it would not let me set ENvironment properties.
> ANyone have other suggestions?
> >If by Master you mean System or User (not Process which is a transient per
> process copy)...
> >WshEnvironment Object
> >Michael Harris
> >Please do not email questions - post them to the newsgroup...
> >> I have a Win2000 Pro PC. I would like to have WSH set an evironment
> >> variable in the master environment. Can this be done? If so, how?
> >> Thanks.
> >> Don Ireland
> >> _______________________________________________
> >> ????????????????????????
> >> Remember, a man's life is what his thoughts make of it.