教程 Powershell 教程 Powershell - 讀取文字檔案 Powershell - 讀取文字檔案 Created: November-02, 2018 Cmdlet Get-Content cmdlet 用於讀取文字檔案的內容。 在這個例子中,我們來讀取檔案 test.txt 的內容。 powershellCopyGet-Content D:\temp\test\test.txt 輸出 你可以在 PowerShell 控制檯中看到以下輸出。 powershellCopyWelcome to Tastones Powershell - 刪除檔案內容Powershell - 讀取 XML 檔案