<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:pingback="http://madskills.com/public/xml/rss/module/pingback/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0">
  <channel>
    <title>IIrrelevant - Windows</title>
    <link>http://www.milkcarton.com/blog/</link>
    <description>Irrelevant musings about software development</description>
    <language>en-us</language>
    <copyright>Dan Morphis</copyright>
    <lastBuildDate>Thu, 01 Jul 2010 16:25:00 GMT</lastBuildDate>
    <generator>newtelligence dasBlog 2.3.9074.18820</generator>
    <managingEditor>blog@milkcarton.com</managingEditor>
    <webMaster>blog@milkcarton.com</webMaster>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=876021fc-a22b-44d6-9468-0ecf3a59d0bc</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,876021fc-a22b-44d6-9468-0ecf3a59d0bc.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,876021fc-a22b-44d6-9468-0ecf3a59d0bc.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=876021fc-a22b-44d6-9468-0ecf3a59d0bc</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
When I started blogging 3+ years ago, I found Windows Live Writer and really loved
it. Since I’ve started blogging again, I’ve switched from blogging on my PC to my
Mac. Mainly because I’m trying to use and understand Mono on the Mac. Unfortunately
I’ve been unable to find any decent free blogging software on the Mac.
</p>
        <p>
Switching back and forth to my PC to write blog posts isn’t my idea of fun. So, I
decided to fire up my Windows VM, installed WLW, and put VMware into Unity mode. I
must say, I’m pretty impressed. I was able to write a blog post in WLW, take a screen
capture on my Mac, and paste it into WLW with absolutely no issues. Consider me sold
:)
</p>
        <p>
Now, if only I could figure out how to get the link that WLW opens after making a
post to open in Chrome on my Mac instead of Chrome on my VM :)
</p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=876021fc-a22b-44d6-9468-0ecf3a59d0bc" />
      </body>
      <title>OS X and Windows, better together?</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,876021fc-a22b-44d6-9468-0ecf3a59d0bc.aspx</guid>
      <link>http://www.milkcarton.com/blog/2010/07/01/OS+X+And+Windows+Better+Together.aspx</link>
      <pubDate>Thu, 01 Jul 2010 16:25:00 GMT</pubDate>
      <description>&lt;p&gt;
When I started blogging 3+ years ago, I found Windows Live Writer and really loved
it. Since I’ve started blogging again, I’ve switched from blogging on my PC to my
Mac. Mainly because I’m trying to use and understand Mono on the Mac. Unfortunately
I’ve been unable to find any decent free blogging software on the Mac.
&lt;/p&gt;
&lt;p&gt;
Switching back and forth to my PC to write blog posts isn’t my idea of fun. So, I
decided to fire up my Windows VM, installed WLW, and put VMware into Unity mode. I
must say, I’m pretty impressed. I was able to write a blog post in WLW, take a screen
capture on my Mac, and paste it into WLW with absolutely no issues. Consider me sold
:)
&lt;/p&gt;
&lt;p&gt;
Now, if only I could figure out how to get the link that WLW opens after making a
post to open in Chrome on my Mac instead of Chrome on my VM :)
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=876021fc-a22b-44d6-9468-0ecf3a59d0bc" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,876021fc-a22b-44d6-9468-0ecf3a59d0bc.aspx</comments>
      <category>Mac OS X</category>
      <category>VMware</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=1e8f169b-eb16-4ab1-921f-027743bc9148</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=1e8f169b-eb16-4ab1-921f-027743bc9148</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
After not blogging for over a year, I decided to get back in the swing of things and
write more. I clicked on a link and got the dreaded 404. So I decided to investigate.
</p>
        <p>
About 6-8 months ago I upgraded my server last year to Server 2008 and IIS 7. I checked
that my blog loaded, but never checked any links. It turns out that IIS 7 be default
blogs "+" in URLs because it can pose security issues. Well, all my blog post links
have "+" in them. This broke things :(
</p>
        <p>
After some digging, I figured out how to fix it. Add the following to your Web.config
file<br />
&lt;configuration&gt;<br />
  &lt;system.webServer&gt;<br />
    &lt;security&gt;<br />
      &lt;requestFiltering allowDoubleEscaping="True"/&gt;<br />
    &lt;/security&gt;<br />
  &lt;/system.webServer&gt;<br />
&lt;/configuration&gt;<br /></p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=1e8f169b-eb16-4ab1-921f-027743bc9148" />
      </body>
      <title>My blog links were broken, and the improved security of IIS 7 was to blame</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</guid>
      <link>http://www.milkcarton.com/blog/2010/06/28/My+Blog+Links+Were+Broken+And+The+Improved+Security+Of+IIS+7+Was+To+Blame.aspx</link>
      <pubDate>Mon, 28 Jun 2010 00:02:31 GMT</pubDate>
      <description>&lt;p&gt;
After not blogging for over a year, I decided to get back in the swing of things and
write more. I clicked on a link and got the dreaded 404. So I decided to investigate.
&lt;/p&gt;
&lt;p&gt;
About 6-8 months ago I upgraded my server last year to Server 2008 and IIS 7. I checked
that my blog loaded, but never checked any links. It turns out that IIS 7 be default
blogs "+" in URLs because it can pose security issues. Well, all my blog post links
have "+" in them. This broke things :(
&lt;/p&gt;
&lt;p&gt;
After some digging, I figured out how to fix it. Add the following to your Web.config
file&lt;br /&gt;
&amp;lt;configuration&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;system.webServer&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;security&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;requestFiltering allowDoubleEscaping="True"/&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;lt;/security&amp;gt;&lt;br /&gt;
&amp;nbsp;&amp;nbsp;&amp;lt;/system.webServer&amp;gt;&lt;br /&gt;
&amp;lt;/configuration&amp;gt;&lt;br /&gt;
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=1e8f169b-eb16-4ab1-921f-027743bc9148" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,1e8f169b-eb16-4ab1-921f-027743bc9148.aspx</comments>
      <category>IIS7</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=5083d210-8ecd-4473-a49e-d33c9d17e3f0</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,5083d210-8ecd-4473-a49e-d33c9d17e3f0.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,5083d210-8ecd-4473-a49e-d33c9d17e3f0.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=5083d210-8ecd-4473-a49e-d33c9d17e3f0</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I tried <a href="http://www.milkcarton.com/blog/2008/05/04/What+I+Like+About+Windows+Vista.aspx">Windows
Vista</a> for a week, loved the new Explorer, loved the new visuals and animations,
hated the crashes and Explorer would lock up a lot.
</p>
        <p>
A while back, a few bloggers talked about how much faster and better Windows Server
2008 was than Windows Vista; so I figured I would give Server 2008 a shot.  A
quick Google search turned up <a href="http://www.Win2008Workstation.com">www.Win2008Workstation.com</a>.
I followed the guides on that site, and I now have a desktop which looks like Vista,
but performs much faster, and I get MUCH fewer lockups of Windows Explorer.
</p>
        <p>
I did have to set DEP to "Essential Windows programs and services only" otherwise
some games and programs wouldn't install.  But other than that, its been a great
experience! Way to go Windows Server 2008 team!
</p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=5083d210-8ecd-4473-a49e-d33c9d17e3f0" />
      </body>
      <title>Windows Server 2008, a better faster Windows Vista</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,5083d210-8ecd-4473-a49e-d33c9d17e3f0.aspx</guid>
      <link>http://www.milkcarton.com/blog/2008/05/19/Windows+Server+2008+A+Better+Faster+Windows+Vista.aspx</link>
      <pubDate>Mon, 19 May 2008 19:55:47 GMT</pubDate>
      <description>&lt;p&gt;
I tried &lt;a href="http://www.milkcarton.com/blog/2008/05/04/What+I+Like+About+Windows+Vista.aspx"&gt;Windows
Vista&lt;/a&gt; for a week, loved the new Explorer, loved the new visuals and animations,
hated the crashes and Explorer would lock up a lot.
&lt;/p&gt;
&lt;p&gt;
A while back, a few bloggers talked about how much faster and better Windows Server
2008 was than Windows Vista; so I figured I would give Server 2008 a shot.&amp;nbsp; A
quick Google search turned up &lt;a href="http://www.Win2008Workstation.com"&gt;www.Win2008Workstation.com&lt;/a&gt;.
I followed the guides on that site, and I now have a desktop which looks like Vista,
but performs much faster, and I get MUCH fewer lockups of Windows Explorer.
&lt;/p&gt;
&lt;p&gt;
I did have to set DEP to "Essential Windows programs and services only" otherwise
some games and programs wouldn't install.&amp;nbsp; But other than that, its been a great
experience! Way to go Windows Server 2008 team!
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=5083d210-8ecd-4473-a49e-d33c9d17e3f0" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,5083d210-8ecd-4473-a49e-d33c9d17e3f0.aspx</comments>
      <category>Server</category>
      <category>Vista</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=575c93e7-0869-48fa-aa69-255725931a36</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,575c93e7-0869-48fa-aa69-255725931a36.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,575c93e7-0869-48fa-aa69-255725931a36.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=575c93e7-0869-48fa-aa69-255725931a36</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
So in my last post, I ranted (well, tried to, but my rant got wiped out when Vista
crashed) about what I didn't like about Vista.  Now I'll rant about what I do
like about Vista.
</p>
        <h3>Task Manager and Resource Monitor
</h3>
        <p>
Both the Task Manager and the Resource Monitor (formally performance monitor) on Vista
received a much needed revamp.  The fact that task man now allows you to go to
one place and see all your running programs and services, and even allows you to start/stop
services from within the task man is a huge improvement.  And with perfmon, being
about to see at a glance what is going on with your CPU, disk, network and memory
is awesome!  While the old perfmon was OK, the fact that you had to 1) add all
those things separately and then try to discern one from another because they were
all overlayed on one graph was kind of a pain.
</p>
        <h3>Animations / Eye Candy
</h3>
        <p>
In ALL previous version of Microsoft Windows, the first thing I would do is turn off
ALL the animations, I always found them to be annoying, distracting, and a waste of
my time.  But I've found the animations and eye candy with Vista to actually
enhance the experience of using the OS.
</p>
        <h3>Start Menu
</h3>
        <p>
The start menu in all previous versions of Microsoft Windows was always a jumbled
mess of applications, and God forbid you had more than a dozen or so applications
installed, your start menu would become just unwieldy.  I used to organize all
my programs by type, Internet, Utilities, Audio &amp; Video, and Development to try
and tame the mess that was the start menu.  Now, it really doesn't matter how
big a mess it becomes, the fact that I can press the Win key and start typing makes
the whole thing more manageable, and a heck of a lot easier to use.
</p>
        <h3>Programs and Features
</h3>
        <p>
The abomination that was formally Add/Remove Programs has finally been fixed! 
As a developer, with all the software I had to have installed, it would take several
minutes for the Add/Remove Programs dialog to come up and populate. Now, it pops up
right away, and starts populating.  I haven't had it take more than 10-15 seconds
for it to fully populate with all my programs!  And, it even tells me down at
the bottom that I have 101 programs installed, for a total of 9.57 GB of space. 
Pretty handy. That fact that I can sort all my installed programs by size is really
nice as well.
</p>
        <h3>Overall
</h3>
        <p>
Overall, when I can get Windows Vista to not lockup, I'm happy with it.  If things
continue the way they have been today, I think I'll stick with Windows Vista. 
I can say though, that game performance is pretty crappy.  I'm getting a solid
10-15 frames per second less in Half Life 2 :(
</p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=575c93e7-0869-48fa-aa69-255725931a36" />
      </body>
      <title>What I like about Windows Vista</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,575c93e7-0869-48fa-aa69-255725931a36.aspx</guid>
      <link>http://www.milkcarton.com/blog/2008/05/04/What+I+Like+About+Windows+Vista.aspx</link>
      <pubDate>Sun, 04 May 2008 02:44:27 GMT</pubDate>
      <description>&lt;p&gt;
So in my last post, I ranted (well, tried to, but my rant got wiped out when Vista
crashed) about what I didn't like about Vista.&amp;nbsp; Now I'll rant about what I do
like about Vista.
&lt;/p&gt;
&lt;h3&gt;Task Manager and Resource Monitor
&lt;/h3&gt;
&lt;p&gt;
Both the Task Manager and the Resource Monitor (formally performance monitor) on Vista
received a much needed revamp.&amp;nbsp; The fact that task man now allows you to go to
one place and see all your running programs and services, and even allows you to start/stop
services from within the task man is a huge improvement.&amp;nbsp; And with perfmon, being
about to see at a glance what is going on with your CPU, disk, network and memory
is awesome!&amp;nbsp; While the old perfmon was OK, the fact that you had to 1) add all
those things separately and then try to discern one from another because they were
all overlayed on one graph was kind of a pain.
&lt;/p&gt;
&lt;h3&gt;Animations / Eye Candy
&lt;/h3&gt;
&lt;p&gt;
In ALL previous version of Microsoft Windows, the first thing I would do is turn off
ALL the animations, I always found them to be annoying, distracting, and a waste of
my time.&amp;nbsp; But I've found the animations and eye candy with Vista to actually
enhance the experience of using the OS.
&lt;/p&gt;
&lt;h3&gt;Start Menu
&lt;/h3&gt;
&lt;p&gt;
The start menu in all previous versions of Microsoft Windows was always a jumbled
mess of applications, and God forbid you had more than a dozen or so applications
installed, your start menu would become just unwieldy.&amp;nbsp; I used to organize all
my programs by type, Internet, Utilities, Audio &amp;amp; Video, and Development to try
and tame the mess that was the start menu.&amp;nbsp; Now, it really doesn't matter how
big a mess it becomes, the fact that I can press the Win key and start typing makes
the whole thing more manageable, and a heck of a lot easier to use.
&lt;/p&gt;
&lt;h3&gt;Programs and Features
&lt;/h3&gt;
&lt;p&gt;
The abomination that was formally Add/Remove Programs has finally been fixed!&amp;nbsp;
As a developer, with all the software I had to have installed, it would take several
minutes for the Add/Remove Programs dialog to come up and populate. Now, it pops up
right away, and starts populating.&amp;nbsp; I haven't had it take more than 10-15 seconds
for it to fully populate with all my programs!&amp;nbsp; And, it even tells me down at
the bottom that I have 101 programs installed, for a total of 9.57 GB of space.&amp;nbsp;
Pretty handy. That fact that I can sort all my installed programs by size is really
nice as well.
&lt;/p&gt;
&lt;h3&gt;Overall
&lt;/h3&gt;
&lt;p&gt;
Overall, when I can get Windows Vista to not lockup, I'm happy with it.&amp;nbsp; If things
continue the way they have been today, I think I'll stick with Windows Vista.&amp;nbsp;
I can say though, that game performance is pretty crappy.&amp;nbsp; I'm getting a solid
10-15 frames per second less in Half Life 2 :(
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=575c93e7-0869-48fa-aa69-255725931a36" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,575c93e7-0869-48fa-aa69-255725931a36.aspx</comments>
      <category>Vista</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=8a30e21e-2c3f-4f68-af08-81c327a18e3d</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,8a30e21e-2c3f-4f68-af08-81c327a18e3d.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,8a30e21e-2c3f-4f68-af08-81c327a18e3d.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=8a30e21e-2c3f-4f68-af08-81c327a18e3d</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I was 3 or 4 paragraphs into what was going to be a very long rant about Windows Vista. 
About how some programs were crashing and other programs were losing there settings
under Vista, and wouldn't you know it, I was trying to move some files around and
Vista locks up.  Not a hard lock (nothing works), but explorer got wedged, and
then one by one every process on the laptop got wedged.  I couldn't even use
taskman to kill off the offending processes.
</p>
        <p>
If things don't improve dramaticly for me this weekend, then I'm either going back
to XP, or switching to Server 2008.
</p>
        <p>
I really wanted to like Vista, but right now, I'm inclined to agree with everyone
else out there that Vista sucks
</p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=8a30e21e-2c3f-4f68-af08-81c327a18e3d" />
      </body>
      <title>First impressions of Windows Vista</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,8a30e21e-2c3f-4f68-af08-81c327a18e3d.aspx</guid>
      <link>http://www.milkcarton.com/blog/2008/05/03/First+Impressions+Of+Windows+Vista.aspx</link>
      <pubDate>Sat, 03 May 2008 05:47:02 GMT</pubDate>
      <description>&lt;p&gt;
I was 3 or 4 paragraphs into what was going to be a very long rant about Windows Vista.&amp;nbsp;
About how some programs were crashing and other programs were losing there settings
under Vista, and wouldn't you know it, I was trying to move some files around and
Vista locks up.&amp;nbsp; Not a hard lock (nothing works), but explorer got wedged, and
then one by one every process on the laptop got wedged.&amp;nbsp; I couldn't even use
taskman to kill off the offending processes.
&lt;/p&gt;
&lt;p&gt;
If things don't improve dramaticly for me this weekend, then I'm either going back
to XP, or switching to Server 2008.
&lt;/p&gt;
&lt;p&gt;
I really wanted to like Vista, but right now, I'm inclined to agree with everyone
else out there that Vista sucks
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=8a30e21e-2c3f-4f68-af08-81c327a18e3d" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,8a30e21e-2c3f-4f68-af08-81c327a18e3d.aspx</comments>
      <category>Review</category>
      <category>Vista</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=020b7e49-3924-4963-b209-acd0803f3218</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,020b7e49-3924-4963-b209-acd0803f3218.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,020b7e49-3924-4963-b209-acd0803f3218.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=020b7e49-3924-4963-b209-acd0803f3218</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
I wanted to blog this mainly for my own edification, but I came across something I
thought was very strange in the Windows command cacles.
</p>
        <p>
So what's the difference between these two lines:
</p>
        <pre style="background-color: #ffffcc">cacls "c:\temp" /T /G everyone:F</pre>
        <p>
and
</p>
        <pre style="background-color: #ffffcc">cacls "c:\temp\" /T /G everyone:F</pre>
        <p>
If you were you were to point out that one doesn't have a trailing slash on the path,
and one does; you would be correct.  You would also be correct if you pointed
out that one works, and one doesn't.
</p>
        <p>
Here is the output from the two commands:
</p>
        <pre style="background-color: #ffffcc">C:\&gt;cacls "c:\temp" /T /G everyone:F<br />
Are you sure (Y/N)?</pre>
        <p>
and
</p>
        <pre style="background-color: #ffffcc">C:\&gt;cacls "c:\temp\" /T /G everyone:F<br />
The filename, directory name, or volume label syntax is incorrect.</pre>
        <p>
Seems like such a silly limitation, maybe there is something I'm not aware of?
</p>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=020b7e49-3924-4963-b209-acd0803f3218" />
      </body>
      <title>Windows cacles at me</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,020b7e49-3924-4963-b209-acd0803f3218.aspx</guid>
      <link>http://www.milkcarton.com/blog/2008/04/30/Windows+Cacles+At+Me.aspx</link>
      <pubDate>Wed, 30 Apr 2008 20:04:38 GMT</pubDate>
      <description>&lt;p&gt;
I wanted to blog this mainly for my own edification, but I came across something I
thought was very strange in the Windows command cacles.
&lt;/p&gt;
&lt;p&gt;
So what's the difference between these two lines:
&lt;/p&gt;
&lt;pre style="background-color: #ffffcc"&gt;cacls "c:\temp" /T /G everyone:F&lt;/pre&gt;
&lt;p&gt;
and
&lt;/p&gt;
&lt;pre style="background-color: #ffffcc"&gt;cacls "c:\temp\" /T /G everyone:F&lt;/pre&gt;
&lt;p&gt;
If you were you were to point out that one doesn't have a trailing slash on the path,
and one does; you would be correct.&amp;nbsp; You would also be correct if you pointed
out that one works, and one doesn't.
&lt;/p&gt;
&lt;p&gt;
Here is the output from the two commands:
&lt;/p&gt;
&lt;pre style="background-color: #ffffcc"&gt;C:\&amp;gt;cacls "c:\temp" /T /G everyone:F&lt;br&gt;
Are you sure (Y/N)?&lt;/pre&gt;
&lt;p&gt;
and
&lt;/p&gt;
&lt;pre style="background-color: #ffffcc"&gt;C:\&amp;gt;cacls "c:\temp\" /T /G everyone:F&lt;br&gt;
The filename, directory name, or volume label syntax is incorrect.&lt;/pre&gt;
&lt;p&gt;
Seems like such a silly limitation, maybe there is something I'm not aware of?
&lt;/p&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=020b7e49-3924-4963-b209-acd0803f3218" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,020b7e49-3924-4963-b209-acd0803f3218.aspx</comments>
      <category>geek</category>
      <category>Windows</category>
    </item>
    <item>
      <trackback:ping>http://www.milkcarton.com/blog/Trackback.aspx?guid=f1de834d-6c68-4cdf-bbd3-caa00629d883</trackback:ping>
      <pingback:server>http://www.milkcarton.com/blog/pingback.aspx</pingback:server>
      <pingback:target>http://www.milkcarton.com/blog/PermaLink,guid,f1de834d-6c68-4cdf-bbd3-caa00629d883.aspx</pingback:target>
      <dc:creator>Dan Morphis</dc:creator>
      <wfw:comment>http://www.milkcarton.com/blog/CommentView,guid,f1de834d-6c68-4cdf-bbd3-caa00629d883.aspx</wfw:comment>
      <wfw:commentRss>http://www.milkcarton.com/blog/SyndicationService.asmx/GetEntryCommentsRss?guid=f1de834d-6c68-4cdf-bbd3-caa00629d883</wfw:commentRss>
      <body xmlns="http://www.w3.org/1999/xhtml">
        <p>
If you've read <a href="http://blogs.msdn.com/oldnewthing/">Raymond Chen's blog</a> long
enough, then you know trying to change system stuff directly in Windows registry
is discouraged, if not frowned upon.  So when I kept hacking away at the registry
trying to get some Windows Firewall exceptions for XP and Vista created, I decided
to take a step back and see what Windows's API's are out there to do this.
</p>
        <p>
Doing some Google searches doesn't reveal much (which is why I decided to blog this),
except these two hidden gems <a href="http://www.codeproject.com/cs/internet/Syslogd.asp">Syslog
daemon for Windows Eventlog</a>, and <a href="http://www.developmentnow.com/g/36_2004_12_0_0_31409/Adding-a-port-to-the-XP-Firewall.htm">Adding
a port to the XP Firewall</a>.  Both of these gave me pointers in the right direction
to create this gem:
</p>
        <pre>
          <span style="color: teal"> 1</span>
          <span style="color: blue">private</span>
          <span style="color: blue">static</span>
          <span style="color: blue">void</span> ExceptionToFirewall(<span style="color: blue">bool</span> add, <span style="color: blue">string</span> imageFileName, <span style="color: blue">string</span> name) <span style="color: teal"> 2</span> { <span style="color: teal"> 3</span> Type
netFwMgrType = Type.GetTypeFromProgID(<span style="color: maroon">"HNetCfg.FwMgr"</span>); <span style="color: teal"> 4</span> INetFwMgr
mgr = (INetFwMgr)Activator.CreateInstance(netFwMgrType); <span style="color: teal"> 5</span><span style="color: teal"> 6</span> INetFwProfile
curProfile = mgr.LocalPolicy.CurrentProfile; <span style="color: teal"> 7</span><span style="color: blue">if</span> (add) <span style="color: teal"> 8</span> { <span style="color: teal"> 9</span> Type
NetFwAuthorizedApplicationType = Type.GetTypeFromProgID(<span style="color: maroon">"HNetCfg.FwAuthorizedApplication"</span>, <span style="color: maroon">false</span>); <span style="color: teal"> 10</span> INetFwAuthorizedApplication
app = (INetFwAuthorizedApplication)Activator.CreateInstance(NetFwAuthorizedApplicationType); <span style="color: teal"> 11</span><span style="color: teal"> 12</span> app.Name
= name; <span style="color: teal"> 13</span> app.ProcessImageFileName = imageFileName; <span style="color: teal"> 14</span> app.Enabled
= <span style="color: maroon">true</span>; <span style="color: teal"> 15</span> app.RemoteAddresses
= <span style="color: maroon">"*"</span>; <span style="color: teal"> 16</span> app.Scope
= NET_FW_SCOPE_.NET_FW_SCOPE_ALL; <span style="color: teal"> 17</span><span style="color: teal"> 18</span> curProfile.AuthorizedApplications.Add(app); <span style="color: teal"> 19</span> } <span style="color: teal"> 20</span><span style="color: blue">else</span><span style="color: teal"> 21</span> { <span style="color: teal"> 22</span> curProfile.AuthorizedApplications.Remove(imageFileName); <span style="color: teal"> 23</span> } <span style="color: teal"> 24</span> }</pre>
        <pre class="code"> </pre>
        <p>
To use this, you'll need to add a reference to COM component HNetCfg.FwMgr (Guid "{304CE942-6E39-40D8-943A-B913C40C9CD4}", file
path C:\windows\system32\hnetcfg.dll).
</p>
        <p>
One note, don't use the IpVersion property of INetFwAuthorizedApplication, under Windows
Vista it throws a NotImplimentedException.
</p>
        <p>
          <a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2007%2f10%2f08%2fWindows%2bFirewall%2bExceptions.aspx">
            <img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2007%2f10%2f08%2fWindows%2bFirewall%2bExceptions.aspx" border="0" />
          </a>  
</p>
        <div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:b8ea0826-2453-4df0-abd7-4f69de44893a" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px">del.icio.us
Tags: <a href="http://del.icio.us/popular/C#" rel="tag">C#</a>, <a href="http://del.icio.us/popular/Windows" rel="tag">Windows</a>, <a href="http://del.icio.us/popular/Firewall" rel="tag">Firewall</a></div>
        <img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=f1de834d-6c68-4cdf-bbd3-caa00629d883" />
      </body>
      <title>Creating Windows Firewall Exceptions</title>
      <guid isPermaLink="false">http://www.milkcarton.com/blog/PermaLink,guid,f1de834d-6c68-4cdf-bbd3-caa00629d883.aspx</guid>
      <link>http://www.milkcarton.com/blog/2007/10/08/Creating+Windows+Firewall+Exceptions.aspx</link>
      <pubDate>Mon, 08 Oct 2007 02:50:55 GMT</pubDate>
      <description>&lt;p&gt;
If you've read &lt;a href="http://blogs.msdn.com/oldnewthing/"&gt;Raymond Chen's blog&lt;/a&gt; long
enough, then you know&amp;nbsp;trying to change system stuff directly in Windows registry
is discouraged, if not frowned upon.&amp;nbsp; So when I kept hacking away at the registry
trying to get some Windows Firewall exceptions for XP and Vista created, I decided
to take a step back and see what Windows's API's are out there to&amp;nbsp;do this.
&lt;/p&gt;
&lt;p&gt;
Doing some Google searches doesn't reveal much (which is why I decided to blog this),
except these two&amp;nbsp;hidden&amp;nbsp;gems &lt;a href="http://www.codeproject.com/cs/internet/Syslogd.asp"&gt;Syslog
daemon for Windows Eventlog&lt;/a&gt;, and &lt;a href="http://www.developmentnow.com/g/36_2004_12_0_0_31409/Adding-a-port-to-the-XP-Firewall.htm"&gt;Adding
a port to the XP Firewall&lt;/a&gt;.&amp;nbsp; Both of these gave me pointers in the right direction
to create this gem:
&lt;/p&gt;
&lt;pre&gt;&lt;span style="color: teal"&gt; 1&lt;/span&gt; &lt;span style="color: blue"&gt;private&lt;/span&gt; &lt;span style="color: blue"&gt;static&lt;/span&gt; &lt;span style="color: blue"&gt;void&lt;/span&gt; ExceptionToFirewall(&lt;span style="color: blue"&gt;bool&lt;/span&gt; add, &lt;span style="color: blue"&gt;string&lt;/span&gt; imageFileName, &lt;span style="color: blue"&gt;string&lt;/span&gt; name) &lt;span style="color: teal"&gt; 2&lt;/span&gt; { &lt;span style="color: teal"&gt; 3&lt;/span&gt; Type
netFwMgrType = Type.GetTypeFromProgID(&lt;span style="color: maroon"&gt;"HNetCfg.FwMgr"&lt;/span&gt;); &lt;span style="color: teal"&gt; 4&lt;/span&gt; INetFwMgr
mgr = (INetFwMgr)Activator.CreateInstance(netFwMgrType); &lt;span style="color: teal"&gt; 5&lt;/span&gt; &lt;span style="color: teal"&gt; 6&lt;/span&gt; INetFwProfile
curProfile = mgr.LocalPolicy.CurrentProfile; &lt;span style="color: teal"&gt; 7&lt;/span&gt; &lt;span style="color: blue"&gt;if&lt;/span&gt; (add) &lt;span style="color: teal"&gt; 8&lt;/span&gt; { &lt;span style="color: teal"&gt; 9&lt;/span&gt; Type
NetFwAuthorizedApplicationType = Type.GetTypeFromProgID(&lt;span style="color: maroon"&gt;"HNetCfg.FwAuthorizedApplication"&lt;/span&gt;, &lt;span style="color: maroon"&gt;false&lt;/span&gt;); &lt;span style="color: teal"&gt; 10&lt;/span&gt; INetFwAuthorizedApplication
app = (INetFwAuthorizedApplication)Activator.CreateInstance(NetFwAuthorizedApplicationType); &lt;span style="color: teal"&gt; 11&lt;/span&gt; &lt;span style="color: teal"&gt; 12&lt;/span&gt; app.Name
= name; &lt;span style="color: teal"&gt; 13&lt;/span&gt; app.ProcessImageFileName = imageFileName; &lt;span style="color: teal"&gt; 14&lt;/span&gt; app.Enabled
= &lt;span style="color: maroon"&gt;true&lt;/span&gt;; &lt;span style="color: teal"&gt; 15&lt;/span&gt; app.RemoteAddresses
= &lt;span style="color: maroon"&gt;"*"&lt;/span&gt;; &lt;span style="color: teal"&gt; 16&lt;/span&gt; app.Scope
= NET_FW_SCOPE_.NET_FW_SCOPE_ALL; &lt;span style="color: teal"&gt; 17&lt;/span&gt; &lt;span style="color: teal"&gt; 18&lt;/span&gt; curProfile.AuthorizedApplications.Add(app); &lt;span style="color: teal"&gt; 19&lt;/span&gt; } &lt;span style="color: teal"&gt; 20&lt;/span&gt; &lt;span style="color: blue"&gt;else&lt;/span&gt; &lt;span style="color: teal"&gt; 21&lt;/span&gt; { &lt;span style="color: teal"&gt; 22&lt;/span&gt; curProfile.AuthorizedApplications.Remove(imageFileName); &lt;span style="color: teal"&gt; 23&lt;/span&gt; } &lt;span style="color: teal"&gt; 24&lt;/span&gt; }&lt;/pre&gt;&lt;pre class="code"&gt;&amp;nbsp;&lt;/pre&gt;
&lt;p&gt;
To use this, you'll need to add a reference to COM component HNetCfg.FwMgr (Guid "{304CE942-6E39-40D8-943A-B913C40C9CD4}",&amp;nbsp;file
path&amp;nbsp;C:\windows\system32\hnetcfg.dll).
&lt;/p&gt;
&lt;p&gt;
One note, don't use the IpVersion property of INetFwAuthorizedApplication, under Windows
Vista it throws a NotImplimentedException.
&lt;/p&gt;
&lt;p&gt;
&lt;a href="http://www.dotnetkicks.com/kick/?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2007%2f10%2f08%2fWindows%2bFirewall%2bExceptions.aspx"&gt;&lt;img alt="kick it on DotNetKicks.com" src="http://www.dotnetkicks.com/Services/Images/KickItImageGenerator.ashx?url=http%3a%2f%2fwww.milkcarton.com%2fblog%2f2007%2f10%2f08%2fWindows%2bFirewall%2bExceptions.aspx" border="0"&gt;&lt;/a&gt;&amp;nbsp; 
&lt;div class="wlWriterSmartContent" id="0767317B-992E-4b12-91E0-4F059A8CECA8:b8ea0826-2453-4df0-abd7-4f69de44893a" contenteditable="false" style="padding-right: 0px; display: inline; padding-left: 0px; padding-bottom: 0px; margin: 0px; padding-top: 0px"&gt;del.icio.us
Tags: &lt;a href="http://del.icio.us/popular/C#" rel="tag"&gt;C#&lt;/a&gt;, &lt;a href="http://del.icio.us/popular/Windows" rel="tag"&gt;Windows&lt;/a&gt;, &lt;a href="http://del.icio.us/popular/Firewall" rel="tag"&gt;Firewall&lt;/a&gt;
&lt;/div&gt;
&gt;
&lt;img width="0" height="0" src="http://www.milkcarton.com/blog/aggbug.ashx?id=f1de834d-6c68-4cdf-bbd3-caa00629d883" /&gt;</description>
      <comments>http://www.milkcarton.com/blog/CommentView,guid,f1de834d-6c68-4cdf-bbd3-caa00629d883.aspx</comments>
      <category>C#</category>
      <category>Firewall</category>
      <category>Windows</category>
    </item>
  </channel>
</rss>