Code Comments
Programming Forum and web based access to our favorite programming groups.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
Post Follow-up to this message
Show a Printable Version
Email This Page to Someone!
Receive updates to this thread
Powered by vBulletin
Copyright 2000-2006 Jelsoft Enterprises Limited.