Hi guys,

Thanks for the quick answer.

I try with the existing package solution (Win32::AdminMisc) and let you know if
it is working.
This package may help on other task also.

Paul Voyer
System/DB/PDM Administrator
Engineering Applications Support

Harris Corporation - Microwave Communication Division

mailto:pvoyer@;harris.com


-----Original Message-----
From: Timothy Johnson [mailto:tjohnson@;sandisk.com]
Sent: Wednesday, October 23, 2002 10:53 AM
To: 'Brad Warkentin'; Timothy Johnson
Cc: '$Bill Luebkert'; Voyer, Paul;
[EMAIL PROTECTED]
Subject: RE: Changing Environment variable



You will have the same problem with Bill's technique, actually.  The problem
arises when applications do not know what to do with the message.  You will
have to set the environment for your console window separately.  SetEnvVar()
does the same thing as setting the variable in the System control panel
applet and pressing Ok.

-----Original Message-----
From: Brad Warkentin [mailto:brad.warkentin@;rogers.com]
Sent: Wednesday, October 23, 2002 7:34 AM
To: Timothy Johnson
Cc: '$Bill Luebkert'; Voyer, Paul;
[EMAIL PROTECTED]
Subject: Re: Changing Environment variable


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

Reply via email to