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

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.

-- 
Offer Kaye

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to