So, you have two options.
- Run wget on Windows.
- Set the properties of the webclient object to replicate the functionality set by the wget flags.
The first one is easy, just download the version of Windows wget .
Here is the code for the second.
$source = "http://site.com/qqq" $destination = "d:\site\qqq" $wc = New-Object System.Net.WebClient
Check your cookie.txt for a pair of name values.
I'm not sure how to replicate the -x wget functionality. Give the above attempt and see what it does with the file after downloading.
Note. I can not check it ...
Andy arismendi
source share