Powershell - 读取 HTML 文件

Cmdlet

Get-Content cmdlet 用于读取 html 文件的内容。

在这个例子中,我们来读取 test.html 的内容。

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

输出

你可以在 PowerShell 控制台中看到以下输出。

<html>Welcome to Tastones</html>