LoginSignup
0
2

More than 3 years have passed since last update.

Powershell でユーザ環境設定(Path)

Last updated at Posted at 2019-06-18

miniconda3をインストールしたあとに、ユーザ環境を設定する powershell の例です。

手打ちより、少し楽といったところです。

$oldUserPath = [System.Environment]::GetEnvironmentVariable("Path", "User")
Write-Host $oldUserPath
$oldUserPath += ";C:\ProgramData\Miniconda3;C:\ProgramData\Miniconda3\Library\mingw-w64\bin"
$oldUserPath += ";C:\ProgramData\Miniconda3\Library\usr\bin;C:\ProgramData\Miniconda3\Library\bin;C:\ProgramData\Miniconda3\Scripts"
[System.Environment]::SetEnvironmentVariable("Path", $oldUserPath, "User")

Write-Host $oldUserPath
0
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
2