Searched refs:var_val (Results 1 – 2 of 2) sorted by relevance
22 $var_val = $pair[1].Trim() # trim spaces on the ends of the val variable23 $envars_array += (, ($var_name, $var_val))29 $var_val = $pair[1].Trim() # trim spaces on the ends of the val variable33 $var_val = $var_val.Trim($S + "%PATH%") variable35 $var_val = $var_val.Trim($S + "`$PATH") variable38 $env:PATH = $var_val + $S + $env:PATH40 New-Item -Path "env:$var_name" -Value "$var_val" -Force
72 $var_val = $pair[1].Trim() # trim spaces on the ends of the val variable73 $var_val = $var_val -replace "%(.+)%", "`$env:`$1" # convert var syntax to PS using RegEx variable74 … $var_val = $ExecutionContext.InvokeCommand.ExpandString($var_val) # expand variables to values variable75 $envars_array += (, ($var_name, $var_val))81 $var_val = $pair[1].Trim() # trim spaces on the ends of the val variable82 Set-Item -Path "Env:$var_name" -Value "$var_val"