简体   繁体   中英

Get PATH environment variable in PowerShell

I want to check the PATH environment variable in PowerShell

I've tried

Get-ChildItem env:path

I want to get the complete path, but get only a very small part of it. How much I get depends on the width of the PowerShell window, eg

C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Progra...

如果它只是一个显示问题,您可以通过管道将其发送到Format-List cmdlet:

get-childitem env:path | Format-List *

If want to see the full path, one method is to use echo :

echo $env:path

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM