Quantcast
Channel: Hey, Scripting Guy! Blog
Viewing all articles
Browse latest Browse all 3333

PowerTip: Use PowerShell to Display Windows Path

$
0
0

Summary: Learn to use Windows PowerShell to display your Windows path.

Hey, Scripting Guy! Question How can I use Windows PowerShell to inspect my Windows path to see what folders are there and in what order they appear?

Hey, Scripting Guy! Answer Use the $env PS Drive and retrieve the value of the Path variable. By default, it displays as a continuous string,
          and it can be a bit difficult to read. Here is the command:

$env:path

But if you use the –split operator to break the strings at the semicolon, it is more readable:

$env:path -split ";"


Viewing all articles
Browse latest Browse all 3333

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>