Timothy Johnson wrote: > > Or for a simpler way to do the same thing, get Dave Roth's Win32::AdminMisc > from his PPM repository at http://www.roth.net/perl/packages (If you don't > have it, get it now. It can save you a lot of time.) > > There is a function in there called SetEnvVar() that will do exactly what > you need.
There is a limitation with SetEnvVar, either with the types of variables or with the notification process. I ran into this while messing with the registry for Cadence installs. Unfortunately all the info was left behind at a previous job and I cannot recall the specifics. I do remember that I had to use the method Bill is suggesting. One limitation is that it is a push style notification. Existing cmd.exe windows will ignore the changes, and other apps may, depending on how they were coded. Very different that Unix, where child processs will see the changes, and other processes will not. cheers, brad _______________________________________________ Perl-Win32-Admin mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs