Powershell-创建HTML文件

第2步

在本例中,我们将内容添加到test.html.

在PowerShell ISE控制台中键入以下命令

Set-Content D:\temp\test\test.html '<html>Welcome to onitroad</html>'

步骤1

在本例中,我们创建了一个名为test.html

在PowerShell ISE控制台中键入以下命令

New-Item D:\temp\test\test.html -ItemType File

Cmdlet

cmdlet用于创建新的内容。

第3步

读取test.html.

Get-Content D:\temp\test\test.html
日期:2019-08-20 13:51:04 来源:oir作者:oir