LoginSignup
4
8

More than 5 years have passed since last update.

powershellで環境変数Pathの表示

Last updated at Posted at 2018-03-01

powershellで環境変数Pathの表示

環境

PSVersion : 5.1.16299.248
PSEdition : Desktop

コード

dir env:path |  % {$_.Value -replace ";","`r`n"}

#コメントで教えていただいた方法を以下に記載。
#その1
$env:Path.Split(";")
#その2
$env:path -split ";"

参照


get-help ?

env:pathのヘルプファイルが見つからなかった。
調べ方を教えていただけると嬉しいです。

コメントでenv:pathのヘルプについて教えていただいた。
管理者権限で以下のコマンドを実行。

Update-Help
Get-Help about_Environment_Variables

4
8
3

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
4
8