<?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: Project Source Code Removal</title>
	<atom:link href="http://thinkersroom.com/bytes/2006/11/12/project-source-code-removal/feed/" rel="self" type="application/rss+xml" />
	<link>http://thinkersroom.com/bytes/2006/11/12/project-source-code-removal/</link>
	<description>2+2=5, for large values of 2</description>
	<pubDate>Wed, 07 Jan 2009 11:41:40 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.7</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Lee</title>
		<link>http://thinkersroom.com/bytes/2006/11/12/project-source-code-removal/comment-page-1/#comment-11</link>
		<dc:creator>Lee</dc:creator>
		<pubDate>Sat, 18 Nov 2006 19:14:21 +0000</pubDate>
		<guid isPermaLink="false">http://thinkersroom.com/bytes/2006/11/12/project-source-code-removal/#comment-11</guid>
		<description>Looks helpful. Since you've been playing with PowerShell lately, I thought you might enjoy the PowerShell version:

## Define the extensions
$extensions = "*.cs","*.xsx","*.xsd", "*.resx","*.rpt","*.csproj","*.user","*.projdata",
"*.sln","*.vb","*.scc","*.pdb","*.obj","*.vssscc","*.vbproj","*.suo"

## Show what would happen if they actually did the operation (doesn't actually delete)
dir * -include $extensions -rec &#124; remove-item -whatif

## Actually delete. Has a typo on purpose :)
dir * -include $extensions -rec &#124; remove/item

## Actually delete, and display verbose information. Has a typo on purpose :)
dir * -include $extensions -rec &#124; remove/item -Verbose

## Actually delete, even when files have been made ReadOnly. Has a typo on purpose :)
dir * -include $extensions -rec &#124; remove/item -force

The -WhatIf and -Verbose parameters (just two of our "common parameters") are two features that make life as an admin so much easier. There are others -- you should check them out!

Lee</description>
		<content:encoded><![CDATA[<p>Looks helpful. Since you&#8217;ve been playing with PowerShell lately, I thought you might enjoy the PowerShell version:</p>
<p>## Define the extensions<br />
$extensions = &#8220;*.cs&#8221;,&#8221;*.xsx&#8221;,&#8221;*.xsd&#8221;, &#8220;*.resx&#8221;,&#8221;*.rpt&#8221;,&#8221;*.csproj&#8221;,&#8221;*.user&#8221;,&#8221;*.projdata&#8221;,<br />
&#8220;*.sln&#8221;,&#8221;*.vb&#8221;,&#8221;*.scc&#8221;,&#8221;*.pdb&#8221;,&#8221;*.obj&#8221;,&#8221;*.vssscc&#8221;,&#8221;*.vbproj&#8221;,&#8221;*.suo&#8221;</p>
<p>## Show what would happen if they actually did the operation (doesn&#8217;t actually delete)<br />
dir * -include $extensions -rec | remove-item -whatif</p>
<p>## Actually delete. Has a typo on purpose <img src='http://thinkersroom.com/bytes/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
dir * -include $extensions -rec | remove/item</p>
<p>## Actually delete, and display verbose information. Has a typo on purpose <img src='http://thinkersroom.com/bytes/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
dir * -include $extensions -rec | remove/item -Verbose</p>
<p>## Actually delete, even when files have been made ReadOnly. Has a typo on purpose <img src='http://thinkersroom.com/bytes/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
dir * -include $extensions -rec | remove/item -force</p>
<p>The -WhatIf and -Verbose parameters (just two of our &#8220;common parameters&#8221;) are two features that make life as an admin so much easier. There are others &#8212; you should check them out!</p>
<p>Lee</p>
]]></content:encoded>
	</item>
</channel>
</rss>
