justinooo icon

PowerShell 'Refresh-Path' function

justinooo | PRO | 06/25/24 09:10:40 PM UTC | 0 ⭐ | 7713 👁️ | Never ⏰ | []
PowerShell |

210 B

|

None

|

0 👍

/

0 👎

function Refresh-Path {
    $global:env:Path = [System.Environment]::GetEnvironmentVariable("Path", "Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path", "User")
    Write-Output "PATH refreshed."
}

Comments

  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎

    
        
  •  icon
    01/01/70 12:00:00 AM UTC
    Plain Text |

    0 B

    |

    👍

    /

    👎