Re: Edit Windows PATH



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
.



Relevant Pages

  • Re: AWK problem need help
    ... The script is as follows: ... printf ("PAT:%s\n", $prev) ... The latter would print the field at whatever position "var" contains, and the whole record if var is zero or unset. ... Also, you don't need the " " as the final argument to splitas that's the default, and awk arrays start at 1, not 0 so "lastline" will always be empty. ...
    (comp.unix.shell)
  • Rules Wizard - delay in running VBA macro
    ... My box is not under any load, ... assumption is the script should fire immediately. ... Jim ... Prev by Date: ...
    (microsoft.public.office.developer.outlook.vba)
  • Re: Value list with multiple fields
    ... Does this mean I'll have to run the script ... BTW, the ... Carla. ... Prev by Date: ...
    (comp.databases.filemaker)
  • Re: figure placed out of screen
    ... So I closed matlab and re started to check for the ... Runned a script and the figure disappeared from the ... back to factory. ... Prev by Date: ...
    (comp.soft-sys.matlab)
  • Re: Change User DN / Control How User DN is Created
    ... > Is there a script / tool / etc that will allow us to change the user DN ... > is there a way to control how AD forms the user DN? ... Prev by Date: ...
    (microsoft.public.windows.server.active_directory)