PowerShell - 讀取 HTML 檔案



命令列小程式

Get-Content 命令列小程式用於讀取 HTML 檔案的內容。

在本例中,我們正在讀取 test.html 的內容。

Get-Content D:\temp\test\test.html 

輸出

您可以在 PowerShell 控制檯中檢視以下輸出。

<html>Welcome to TutorialsPoint</html>
powershell_files_io.htm
廣告