<?xml version="1.0" encoding="utf-8"?>
<rss version="2.0"><channel><title>Huddled Masses - Latest Comments in WGet 2 for PowerShell</title><link>http://huddledmasses.disqus.com/</link><description>Joel Bennett's development blog...</description><language>en</language><lastBuildDate>Fri, 01 Aug 2008 12:39:16 -0000</lastBuildDate><item><title>Re: WGet 2 for PowerShell</title><link>http://HuddledMasses.org/wget-2-for-powershell/#comment-2587469</link><description>I couldn't get it to work specifying a path for the file (and the filename) - I kept getting 'access denied' or the path would be appended to the user home directory.&lt;br&gt;&lt;br&gt;I changed:&lt;br&gt;&lt;br&gt;   if($fileName -and !(Split-Path $fileName))&lt;br&gt;&lt;br&gt;to:&lt;br&gt;&lt;br&gt;   if($fileName -ne $null -and (Split-Path $fileName) -ne $null)&lt;br&gt;&lt;br&gt;which worked. I prefer specifying things in this way as I believe they are also easier to read.&lt;br&gt;&lt;br&gt;Comments in the script would also have been nice for this of us newer to PS than others!</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Paul</dc:creator><pubDate>Fri, 01 Aug 2008 12:39:16 -0000</pubDate></item><item><title>Re: WGet 2 for PowerShell</title><link>http://HuddledMasses.org/wget-2-for-powershell/#comment-2587470</link><description>I didn't get it to work with FTP sites, but the "fix" is simple, merely change the line&lt;br&gt;&lt;br&gt;if($res.StatusCode -eq 200) {&lt;br&gt;&lt;br&gt;to&lt;br&gt;&lt;br&gt;if($res.StatusCode -eq 200 -or $res.StatusCode -eq "OpeningData") {&lt;br&gt;&lt;br&gt;Cheers,&lt;br&gt;Niclas</description><dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">Niclas Lindgren</dc:creator><pubDate>Sun, 27 Jul 2008 09:42:00 -0000</pubDate></item></channel></rss>