
- PowerShell 教程
- PowerShell - 首頁
- PowerShell - 概述
- PowerShell - 環境設定
- PowerShell - 命令列小程式
- PowerShell - 檔案和資料夾
- PowerShell - 日期和計時器
- PowerShell - 檔案 I/O
- PowerShell - 高階命令列小程式
- PowerShell - 指令碼
- PowerShell - 特殊變數
- PowerShell - 運算子
- PowerShell - 迴圈
- PowerShell - 條件
- PowerShell - 陣列
- PowerShell - 雜湊表
- PowerShell - 正則表示式
- PowerShell - 反引號
- PowerShell - 括號
- PowerShell - 別名
- PowerShell 實用資源
- PowerShell - 快速指南
- PowerShell - 實用資源
- PowerShell - 討論
PowerShell - 讀取 HTML 檔案
命令列小程式
Get-Content 命令列小程式用於讀取 HTML 檔案的內容。
在本例中,我們正在讀取 test.html 的內容。
Get-Content D:\temp\test\test.html
輸出
您可以在 PowerShell 控制檯中檢視以下輸出。
<html>Welcome to TutorialsPoint</html>
powershell_files_io.htm
廣告