<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	xmlns:georss="http://www.georss.org/georss" xmlns:geo="http://www.w3.org/2003/01/geo/wgs84_pos#" xmlns:media="http://search.yahoo.com/mrss/"
	>

<channel>
	<title>Scripthacks &#187; days</title>
	<atom:link href="http://scripthacks.wordpress.com/tag/days/feed/" rel="self" type="application/rss+xml" />
	<link>http://scripthacks.wordpress.com</link>
	<description>Brain dump in progress...</description>
	<lastBuildDate>Wed, 16 Dec 2009 23:19:51 +0000</lastBuildDate>
	<generator>http://wordpress.com/</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<cloud domain='scripthacks.wordpress.com' port='80' path='/?rsscloud=notify' registerProcedure='' protocol='http-post' />
<image>
		<url>http://www.gravatar.com/blavatar/5470647525b0c2ebad11f181074451eb?s=96&#038;d=http://s.wordpress.com/i/buttonw-com.png</url>
		<title>Scripthacks &#187; days</title>
		<link>http://scripthacks.wordpress.com</link>
	</image>
	<atom:link rel="search" type="application/opensearchdescription+xml" href="http://scripthacks.wordpress.com/osd.xml" title="Scripthacks" />
		<item>
		<title>Windows &#8211; Delete Old Files</title>
		<link>http://scripthacks.wordpress.com/2008/10/08/windows-delete-files-older-then-a-certain-number-of-days/</link>
		<comments>http://scripthacks.wordpress.com/2008/10/08/windows-delete-files-older-then-a-certain-number-of-days/#comments</comments>
		<pubDate>Thu, 09 Oct 2008 02:22:35 +0000</pubDate>
		<dc:creator>scripthacks</dc:creator>
				<category><![CDATA[Batch Script]]></category>
		<category><![CDATA[Delete Files]]></category>
		<category><![CDATA[Older]]></category>
		<category><![CDATA[days]]></category>
		<category><![CDATA[old]]></category>

		<guid isPermaLink="false">http://scripthacks.wordpress.com/?p=165</guid>
		<description><![CDATA[A few cautionary warnings&#8230; this script will delete files from whatever location you specify as LOGPATH.  Use with care. As a best practice I always create my logs with a pre-fix. ex: CheckUpTime-.log which can then be used in the deletion script. This will ensure that you only delete logs that start with &#8220;CheckUpTime&#8221;. 
:: Delete [...]<img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scripthacks.wordpress.com&blog=4863165&post=165&subd=scripthacks&ref=&feed=1" />]]></description>
			<content:encoded><![CDATA[<div class='snap_preview'><br /><p>A few cautionary warnings&#8230; this script will delete files from whatever location you specify as LOGPATH.  Use with care. As a best practice I always create my logs with a pre-fix. ex: CheckUpTime-.log which can then be used in the deletion script. This will ensure that you only delete logs that start with &#8220;CheckUpTime&#8221;. </p>
<p>:: Delete log files older then 14 days<br />
set LOGPATH=C:Logs</p>
<p>:: Echo&#8217;s logs which will be deleted (use this before using the command which contains &#8220;del&#8221;)<br />
forfiles -p %LOGPATH% -m CheckUpTime-*.* -d -14 -c &#8220;cmd /c echo 0&#215;22@Path@File0&#215;22&#8243;</p>
<p>:: Actual Delete Command (remove :: to run command)<br />
::forfiles -p %LOGPATH% -m CheckUpTime-*.* -d -14 -c &#8220;cmd /c del /q @path&#8221;</p>
  <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gocomments/scripthacks.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/comments/scripthacks.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godelicious/scripthacks.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/delicious/scripthacks.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/gostumble/scripthacks.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/stumble/scripthacks.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/godigg/scripthacks.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/digg/scripthacks.wordpress.com/165/" /></a> <a rel="nofollow" href="http://feeds.wordpress.com/1.0/goreddit/scripthacks.wordpress.com/165/"><img alt="" border="0" src="http://feeds.wordpress.com/1.0/reddit/scripthacks.wordpress.com/165/" /></a> <img alt="" border="0" src="http://stats.wordpress.com/b.gif?host=scripthacks.wordpress.com&blog=4863165&post=165&subd=scripthacks&ref=&feed=1" /></div>]]></content:encoded>
			<wfw:commentRss>http://scripthacks.wordpress.com/2008/10/08/windows-delete-files-older-then-a-certain-number-of-days/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
	
		<media:content url="" medium="image">
			<media:title type="html">scripthacks</media:title>
		</media:content>
	</item>
	</channel>
</rss>