<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: WGet 2 for PowerShell</title>
	<atom:link href="http://huddledmasses.org/wget-2-for-powershell/feed/" rel="self" type="application/rss+xml" />
	<link>http://huddledmasses.org/wget-2-for-powershell/</link>
	<description>You can do more than breathe for free...</description>
	<lastBuildDate>Mon, 15 Mar 2010 20:36:59 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Paul</title>
		<link>http://huddledmasses.org/wget-2-for-powershell/comment-page-1/#comment-180117</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 01 Aug 2008 16:39:16 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/wget-2-for-powershell/#comment-180117</guid>
		<description>I couldn&#039;t get it to work specifying a path for the file (and the filename) - I kept getting &#039;access denied&#039; or the path would be appended to the user home directory.

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!</description>
		<content:encoded><![CDATA[<p>I couldn&#8217;t get it to work specifying a path for the file (and the filename) &#8211; I kept getting &#8216;access denied&#8217; or the path would be appended to the user home directory.</p>
<p>I changed:</p>
<p>   if($fileName -and !(Split-Path $fileName))</p>
<p>to:</p>
<p>   if($fileName -ne $null -and (Split-Path $fileName) -ne $null)</p>
<p>which worked. I prefer specifying things in this way as I believe they are also easier to read.</p>
<p>Comments in the script would also have been nice for this of us newer to PS than others!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Niclas Lindgren</title>
		<link>http://huddledmasses.org/wget-2-for-powershell/comment-page-1/#comment-178113</link>
		<dc:creator>Niclas Lindgren</dc:creator>
		<pubDate>Sun, 27 Jul 2008 13:42:00 +0000</pubDate>
		<guid isPermaLink="false">http://HuddledMasses.org/wget-2-for-powershell/#comment-178113</guid>
		<description>I didn&#039;t get it to work with FTP sites, but the &quot;fix&quot; is simple, merely change the line

if($res.StatusCode -eq 200) {

to

if($res.StatusCode -eq 200 -or $res.StatusCode -eq &quot;OpeningData&quot;) {

Cheers,
Niclas</description>
		<content:encoded><![CDATA[<p>I didn&#8217;t get it to work with <span class="caps">FTP</span> sites, but the &#8220;fix&#8221; is simple, merely change the line</p>
<p>if($res.StatusCode -eq 200) {</p>
<p>to</p>
<p>if($res.StatusCode -eq 200 -or $res.StatusCode -eq &#8220;OpeningData&#8221;) {</p>
<p>Cheers,<br />
Niclas</p>
]]></content:encoded>
	</item>
</channel>
</rss>
