print "$ENV{PATH} "."\n"; my $install_path = "c:\\bin"; if( !($ENV{PATH} =~ /c:\\bin/i) ) { print "1 "."\n"; $ENV{PATH} .= ";$install_path"; print "$ENV{PATH} "."\n"; }
print shows the path already been added. But when I check by opening a new session type path command or open registry:HKEY_LOCAL_MACHINE\System\CurrentControlSet\Control\Session Manager\Environment The path is still the old one. Anyone know why? Need save $ENV{PATH}?
In reply to ENV Path didn't take effect by anaconda_wly
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |