The page I am trying to save uses relative links. I am saving this file to another location and need the file to have absolute links.
I have tried the following Powershell command:
$client = new-object System.Net.WebClient
$client.DownloadFile( "http://www.WEBSITE.com/ExampleFolder/", "c:\Test.htm")
This works for downloading and saving the page, but... It opens from the root directory (ex: file:///C:/ExampleFolder/linktofile.asp).
I have tried manually saving the page and was able to get my desired results by saving it as "Webpage Complete" (as opposed to "Webpage HTML only"). This task needs to be done daily, so I unfortunately can't do it manually.
SideNote: I am using Powershell 2.0.1.1