<?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: PowerShell: Remove Files based on date</title>
	<atom:link href="http://mattlog.net/2008/12/15/powershell-remove-files-based-on-date/feed/" rel="self" type="application/rss+xml" />
	<link>http://mattlog.net/2008/12/15/powershell-remove-files-based-on-date/</link>
	<description>All things IT Pro</description>
	<lastBuildDate>Wed, 14 Dec 2011 12:06:12 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
	<item>
		<title>By: Mo</title>
		<link>http://mattlog.net/2008/12/15/powershell-remove-files-based-on-date/comment-page-1/#comment-3568</link>
		<dc:creator>Mo</dc:creator>
		<pubDate>Tue, 30 Mar 2010 19:59:11 +0000</pubDate>
		<guid isPermaLink="false">http://mattlog.net/?p=85#comment-3568</guid>
		<description>I used _.LastWriteTime instead of _.creationTime but noticed that this script also deleted both files and subfolders and it also deleted subfolders under the folder that i told it to exlude. How do i change this to not delete folders?

dir C:\TestFTP -recurse -exclude folder1 &#124; where { ((get-date)-$_.LastWriteTime).days -ge 10} &#124; remove-item -force -recurse</description>
		<content:encoded><![CDATA[<p>I used _.LastWriteTime instead of _.creationTime but noticed that this script also deleted both files and subfolders and it also deleted subfolders under the folder that i told it to exlude. How do i change this to not delete folders?</p>
<p>dir C:\TestFTP -recurse -exclude folder1 | where { ((get-date)-$_.LastWriteTime).days -ge 10} | remove-item -force -recurse</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: crack pipe &#124; AMD.com hot tags</title>
		<link>http://mattlog.net/2008/12/15/powershell-remove-files-based-on-date/comment-page-1/#comment-62</link>
		<dc:creator>crack pipe &#124; AMD.com hot tags</dc:creator>
		<pubDate>Wed, 17 Dec 2008 01:55:56 +0000</pubDate>
		<guid isPermaLink="false">http://mattlog.net/?p=85#comment-62</guid>
		<description>[...] Vote  PowerShell: Remove Files based on date [...]</description>
		<content:encoded><![CDATA[<p>[...] Vote  PowerShell: Remove Files based on date [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>

