Cmdlet

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

在本例中,我们读取test.html.

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

输出

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

<html>Welcome to onitroad</html>
Powershell-读取HTML文件
日期:2019-08-20 13:51:04 来源:oir作者:oir