<?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: Delete files older than certain number of days</title>
	<atom:link href="http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/</link>
	<description>Clem&#039;s Technical Blog</description>
	<lastBuildDate>Thu, 02 Sep 2010 15:10:40 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
	<item>
		<title>By: manus</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-1698</link>
		<dc:creator>manus</dc:creator>
		<pubDate>Wed, 25 Aug 2010 11:05:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-1698</guid>
		<description>Hi there. 
Thanks for the info.
I was wandering if there is a way to find the files (older than 2 years in my case) and print them out in text document or something readable to send the customer.
Thanks in advance.</description>
		<content:encoded><![CDATA[<p>Hi there.<br />
Thanks for the info.<br />
I was wandering if there is a way to find the files (older than 2 years in my case) and print them out in text document or something readable to send the customer.<br />
Thanks in advance.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Clements</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-1685</link>
		<dc:creator>James Clements</dc:creator>
		<pubDate>Fri, 02 Jul 2010 11:44:06 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-1685</guid>
		<description>Hi cici. I have just looked and tested what the command that you used above and the syntax is correct. It actually works fine for me! I wonder if there is a problem with the &#039;@&#039; symbol if you have copied/pasted the command? (I have seen issues where the character set appears different when pasting into the command prompt - especially with things like quotes e.t.c)

I assume you have tried typing it all out as well?</description>
		<content:encoded><![CDATA[<p>Hi cici. I have just looked and tested what the command that you used above and the syntax is correct. It actually works fine for me! I wonder if there is a problem with the '@' symbol if you have copied/pasted the command? (I have seen issues where the character set appears different when pasting into the command prompt - especially with things like quotes e.t.c)</p>
<p>I assume you have tried typing it all out as well?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: cici</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-1683</link>
		<dc:creator>cici</dc:creator>
		<pubDate>Thu, 01 Jul 2010 19:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-1683</guid>
		<description>I am running this on WinServ 2003, but I keep getting this error:
ERROR: Invalid argument/option - &#039;/q&#039;.
Type &quot;FORFILES /?&quot; for usage.

If I take out the /q, then I&#039;ll get
ERROR: Invalid argument/option - &#039;@path&#039;.

I don&#039;t see anything wrong with my command.  Any idea?

Here&#039;s my command:
forfiles.exe /p c:\data\log\ /s /m *.* /d -365 /c &quot;cmd /c del /q @path&quot;

Thanks in advance</description>
		<content:encoded><![CDATA[<p>I am running this on WinServ 2003, but I keep getting this error:<br />
ERROR: Invalid argument/option - '/q'.<br />
Type "FORFILES /?" for usage.</p>
<p>If I take out the /q, then I'll get<br />
ERROR: Invalid argument/option - '@path'.</p>
<p>I don't see anything wrong with my command.  Any idea?</p>
<p>Here's my command:<br />
forfiles.exe /p c:\data\log\ /s /m *.* /d -365 /c "cmd /c del /q @path"</p>
<p>Thanks in advance</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Seth</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-1257</link>
		<dc:creator>Seth</dc:creator>
		<pubDate>Mon, 14 Jun 2010 20:32:21 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-1257</guid>
		<description>PROBLEM  #38: Hi,

I tried to running this in my system(WIN-XP operating system), for some reason it is NOT deleting any files.
I didn&#039;t had forfiles.exe in my system, I downloaded from the net and placed it in D:\forfiles.exe and tried to run forfiles command from command promt, but no success.

SOLUTION: for windows XP, use forfiles.exe (for 2003). This works.
Example: forfiles.exe /P &quot;C:\DATAHOUSED\SORT&quot; /S /M *.vot /C &quot;cmd /c del /q @path&quot;</description>
		<content:encoded><![CDATA[<p>PROBLEM  #38: Hi,</p>
<p>I tried to running this in my system(WIN-XP operating system), for some reason it is NOT deleting any files.<br />
I didn't had forfiles.exe in my system, I downloaded from the net and placed it in D:\forfiles.exe and tried to run forfiles command from command promt, but no success.</p>
<p>SOLUTION: for windows XP, use forfiles.exe (for 2003). This works.<br />
Example: forfiles.exe /P "C:\DATAHOUSED\SORT" /S /M *.vot /C "cmd /c del /q @path"</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: kantzy</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-610</link>
		<dc:creator>kantzy</dc:creator>
		<pubDate>Tue, 06 Apr 2010 00:03:18 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-610</guid>
		<description>This tool deletes the files but leaves the folders. So is there a way to delete the folders(empty) as well using this command ?
Note that the &quot;Modified date&quot; of the folder changes to the command run date once the it has deleted the files.

I managed to delete the empty folders by following the below links
http://www.pcmag.com/article2/0,2817,803393,00.asp
http://blogs.msdn.com/oldnewthing/archive/2008/04/17/8399914.aspx</description>
		<content:encoded><![CDATA[<p>This tool deletes the files but leaves the folders. So is there a way to delete the folders(empty) as well using this command ?<br />
Note that the "Modified date" of the folder changes to the command run date once the it has deleted the files.</p>
<p>I managed to delete the empty folders by following the below links<br />
<a href="http://www.pcmag.com/article2/0,2817,803393,00.asp" rel="nofollow">http://www.pcmag.com/article2/0,2817,803393,00.asp</a><br />
<a href="http://blogs.msdn.com/oldnewthing/archive/2008/04/17/8399914.aspx" rel="nofollow">http://blogs.msdn.com/oldnewthing/archive/2008/04/17/8399914.aspx</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lebisol</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-605</link>
		<dc:creator>lebisol</dc:creator>
		<pubDate>Wed, 24 Mar 2010 17:55:43 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-605</guid>
		<description>Hi James,
Actually it turns out is the the syntax perhaps diff. version for win2000.
I was using win2000 kit on win2000 adv. server and what did work was:
forfiles -pC:\Folder\ -m*.* -d-7 -c&quot;cmd /c del /q @FILE&quot;

Thanks for posting this, it geared me in the right direction.
Awesome!</description>
		<content:encoded><![CDATA[<p>Hi James,<br />
Actually it turns out is the the syntax perhaps diff. version for win2000.<br />
I was using win2000 kit on win2000 adv. server and what did work was:<br />
forfiles -pC:\Folder\ -m*.* -d-7 -c"cmd /c del /q @FILE"</p>
<p>Thanks for posting this, it geared me in the right direction.<br />
Awesome!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James Clements</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-604</link>
		<dc:creator>James Clements</dc:creator>
		<pubDate>Wed, 24 Mar 2010 14:02:11 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-604</guid>
		<description>Hi lebisol. I believe the issue you are experiencing is caused by the fact you are using forfiles.exe from Windows Server 2003 on Windows Server 2000. I have updated the post to include download links for relevant versions.</description>
		<content:encoded><![CDATA[<p>Hi lebisol. I believe the issue you are experiencing is caused by the fact you are using forfiles.exe from Windows Server 2003 on Windows Server 2000. I have updated the post to include download links for relevant versions.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lebisol</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-603</link>
		<dc:creator>lebisol</dc:creator>
		<pubDate>Wed, 24 Mar 2010 00:16:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-603</guid>
		<description>@Praveen
Same here on the win2000 server....nothing gets deleted. 
Then again...it IS windows... :(
Thanks!</description>
		<content:encoded><![CDATA[<p>@Praveen<br />
Same here on the win2000 server....nothing gets deleted.<br />
Then again...it IS windows... <img src='http://www.jjclements.co.uk/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /><br />
Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ralph</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-601</link>
		<dc:creator>Ralph</dc:creator>
		<pubDate>Wed, 17 Mar 2010 18:06:00 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-601</guid>
		<description>AWESOME !!! Just what I was looking for !!!!</description>
		<content:encoded><![CDATA[<p>AWESOME !!! Just what I was looking for !!!!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://www.jjclements.co.uk/2008/07/31/delete-files-older-than-certain-number-of-days/#comment-587</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Mon, 22 Feb 2010 19:01:57 +0000</pubDate>
		<guid isPermaLink="false">http://www.jjclements.co.uk/?p=66#comment-587</guid>
		<description>Praveen, i&#039;m in the same boat as you..but when i ran it on my windows 2003 machine it worked fine...i think it&#039;s something to do with the forfiles not being part of XP</description>
		<content:encoded><![CDATA[<p>Praveen, i'm in the same boat as you..but when i ran it on my windows 2003 machine it worked fine...i think it's something to do with the forfiles not being part of XP</p>
]]></content:encoded>
	</item>
</channel>
</rss>
