Quantcast
Channel: /r/powershell – How to Code .NET
Viewing all articles
Browse latest Browse all 8793

Reading a local .htm file

$
0
0

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.


Viewing all articles
Browse latest Browse all 8793

Trending Articles