RE: Edit Windows PATH



On Wed, 27 Apr 2005, Bakken, Luke wrote:

> That will change the environment for the cmd.exe process that is
> executed by that one system() call. Changing %ENV will change the
> environment for all processes started by the perl script.

That's the behavior on POSIXy systems, but I had the impression that on
Windows the SET command would have a global effect.

I seem to remember using a variant of this to do things like set file
associations from the DOS shell on NT4, and being surprised that a
command I expected to only work for the current session having effects
on all future sessions. Maybe that was something else though...

But I avoid Windows as much as I can get away with, so I could easily be
wrong about this.



--
Chris Devers
.


Quantcast