PowerShell 'Refresh-Path' function
function Refresh-Path {
$global:env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
Write-Output "PATH refreshed."
}
Comments
0 B
|👍
/👎
0 B
|👍
/👎