- PowerShell 教程
- PowerShell - 主頁
- PowerShell - 概述
- PowerShell - 環境設定
- PowerShell - Cmdlet
- PowerShell - 檔案和資料夾
- PowerShell - 日期和計時器
- PowerShell - 檔案輸入/輸出
- PowerShell - 高階 Cmdlet
- PowerShell - 指令碼編寫
- PowerShell - 特殊變數
- PowerShell - 運算子
- PowerShell - 迴圈
- PowerShell - 條件
- PowerShell - 陣列
- PowerShell - 雜湊表
- PowerShell - Regex
- PowerShell - 反引號
- PowerShell - 括號
- PowerShell - 別名
- PowerShell 實用資源
- PowerShell - 快速指南
- PowerShell - 實用資源
- PowerShell - 討論
PowerShell - 讀取 XML 檔案
Cmdlet
Get-Content cmdlet 用於讀取 xml 檔案的內容。
在這個示例中,我們正在讀取 test.xml 的內容。
Get-Content D:\temp\test\test.xml
輸出
可以在 PowerShell 控制檯中看到如下輸出。
<title>Welcome to TutorialsPoint</title>
powershell_files_io.htm
廣告