我發現我可以在PowerShell中使用$env:Path
來查看我當前的系統路徑。然而,一切都在一條線上一起運行。有沒有辦法將$env:Path
的輸出管道輸出到另一個命令,這個命令將分別打印每個路徑值(即,對於由分號分隔的所有內容,在新行上打印)?Powershell腳本打印出系統路徑中的每個值
目前它打印是這樣的:
我寧願有這樣的事情:
C:\Some Test Directory\With\Some\Files\In\It
C:\Some Test Directory\With\Some\Files\In\It
C:\Some Test Directory\With\Some\Files\In\It
C:\Some Test Directory\With\Some\Files\In\It
C:\Some Test Directory\With\Some\Files\In\It
那麼容易,謝謝! –