For Programmers: Free Programming Magazines  


Home > Archive > PERL Beginners > April 2005 > Re: Edit Windows PATH









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: Edit Windows PATH
Offer Kaye

2005-04-27, 3:56 pm

On 1/1/88, amr wrote:
> Hi All,
>=20
> Do we have Perl script that can edit & add to the Windows (XP, 2000) path=

..?
>=20


The PATH environment variable can be accessed using the %ENV hash:
print "$ENV{PATH}";

You can change $ENV{"PATH"} in the script and it will change the PATH
for the rest of the script (and any sub-processes launched by it).

Someone else will have to help you if you want to change the system's
PATH, I don't know how to do that. Perhaps you should clarify what you
meant.

--=20
Offer Kaye
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com