($Env:path).split(";")

list up in environment variables with windows os

  • $Env:path.split(";")
ps > ($Env:path).split(";")
C:\ProgramData\Anaconda3
C:\ProgramData\Anaconda3\Library\mingw-w64\bin
C:\ProgramData\Anaconda3\Library\usr\bin
C:\ProgramData\Anaconda3\Library\bin
C:\ProgramData\Anaconda3\Scripts
C:\Program Files (x86)\Python36-32\Scripts\
C:\Program Files (x86)\Python36-32\
C:\Program Files (x86)\Common Files\Oracle\Java\javapath
C:\ProgramData\Oracle\Java\javapath
C:\WINDOWS\system32
C:\WINDOWS
C:\WINDOWS\System32\Wbem
C:\WINDOWS\System32\WindowsPowerShell\v1.0\
C:\WINDOWS\system32\config\systemprofile\.dnx\bin
C:\Program Files\Microsoft DNX\Dnvm\
C:\Program Files\Microsoft SQL Server\130\Tools\Binn\
G:\Users\usr_name\Desktop\tool
G:\Users\usr_name\Desktop
G:\Redis\
C:\Program Files\MongoDB\Server\3.2\bin
G:\Python27
C:\Program Files (x86)\Windows Kits\8.1\Windows Performance Toolkit\
C:\Program Files\Microsoft SQL Server\120\Tools\Binn\
G:\xampp\php
C:\Program Files\nodejs\
C:\Program Files (x86)\Graphviz2.38\
C:\Program Files (x86)\MeCab\bin
C:\Program Files (x86)\WinMerge
C:\Program Files (x86)\mosquitto
C:\Program Files\Git\cmd
C:\WINDOWS\System32\OpenSSH\
C:\Program Files (x86)\sakura
G:\Users\usr_name\Downloads\vim80-kaoriya-win64-8.0.0596-20170502\vim80-kaoriya-win64
G:\Users\usr_name\AppData\Local\Microsoft\WindowsApps
G:\Users\usr_name\AppData\Local\atom\bin
  • $Env:path.split(";") | out-string -stream | select-string py
PS > $Env:path.split(";") | out-string -stream | select-string py

G:\Users\usr_name\AppData\Local\Programs\Python\Python36-32\Scripts\
G:\Users\usr_name\AppData\Local\Programs\Python\Python36-32\