I’m having troubles making a script that reads a local .htm file. Here is my script so far:
$html = Get-Content “C:Usersolsonc01DesktopHtmlTestCDW Quote Confirmation Quote #1BNQ7ZWP.O. Ref. KAY SELDERS – EPDA.htm” -Raw
$doc = New-Object -com “HTMLFILE”
$doc.IHTMLDocument2_write($html)
$doc.ParsedHtml.getElementsByTagName(“p”) |
Where{$_.className -eq ‘MsoNormal’}
submitted by /u/armedweapon117
[link] [comments]
The post Reading a local .htm file appeared first on How to Code .NET.