-
Website
http://HuddledMasses.org/ -
Original page
http://HuddledMasses.org/wget-2-for-powershell/ -
Subscribe
All Comments -
Community
-
Top Commenters
-
Clint Ecker
1 comment · 5 points
-
avenzke
1 comment · 1 points
-
Euri
1 comment · 4 points
-
Stuart
1 comment · 1 points
-
Luciano Evaristo Guerche
1 comment · 1 points
-
-
Popular Threads
if($res.StatusCode -eq 200) {
to
if($res.StatusCode -eq 200 -or $res.StatusCode -eq "OpeningData") {
Cheers,
Niclas
I changed:
if($fileName -and !(Split-Path $fileName))
to:
if($fileName -ne $null -and (Split-Path $fileName) -ne $null)
which worked. I prefer specifying things in this way as I believe they are also easier to read.
Comments in the script would also have been nice for this of us newer to PS than others!