PowerShell: Config PATH

 

https://codingbee.net/powershell/powershell-make-a-permanent-change-to-the-path-environment-variable

 

New-Item -ItemType Directory -Path C:\Windows\Path
New-Item -ItemType SymbolicLink -Target E:\program\visualvm\bin\visualvm.exe -Path C:\Windows\Path\visualvm.exe

$env:PATH += ";C:\Program Files\Scripts"
$env:PATH = "C:\Program Files\Scripts;$env:PATH"

 

posted @ 2022-05-22 22:23  ascertain  阅读(23)  评论(0编辑  收藏  举报