<?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: VBScript: Delete Files Older Than One Hour</title> <atom:link href="http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/feed/" rel="self" type="application/rss+xml" /><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/</link> <description>Smash forehead on keyboard to continue...</description> <lastBuildDate>Fri, 11 May 2012 13:11:55 +0000</lastBuildDate> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <item><title>By: Gaddiel</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-1517</link> <dc:creator>Gaddiel</dc:creator> <pubDate>Thu, 08 Mar 2012 15:32:15 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-1517</guid> <description>I&#039;m getting a Permission denied error
Line: 10
Char: 13
Error: Permission denied
Code: 800A0046
Source: Microsoft VBScript runtime error
Any ideas?
Thanks</description> <content:encoded><![CDATA[<p>I&#8217;m getting a Permission denied error</p><p>Line: 10<br
/> Char: 13<br
/> Error: Permission denied<br
/> Code: 800A0046<br
/> Source: Microsoft VBScript runtime error</p><p>Any ideas?<br
/> Thanks</p> ]]></content:encoded> </item> <item><title>By: mrojas</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-1046</link> <dc:creator>mrojas</dc:creator> <pubDate>Wed, 20 Apr 2011 15:15:03 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-1046</guid> <description>Worked like a charm!
I set it up as a scheduled job to delete very large files (50GBs) from a backup.
Thank you.</description> <content:encoded><![CDATA[<p>Worked like a charm!</p><p>I set it up as a scheduled job to delete very large files (50GBs) from a backup.</p><p>Thank you.</p> ]]></content:encoded> </item> <item><title>By: jerome</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-371</link> <dc:creator>jerome</dc:creator> <pubDate>Tue, 07 Dec 2010 15:19:15 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-371</guid> <description>Hello everyone! I do not know how much change to highlight the name of my file and I do not know whether to change anything in the words of French style. Y he means to make amends and see one without that works, thank you for your response!
Jerome ...</description> <content:encoded><![CDATA[<p>Hello everyone! I do not know how much change to highlight the name of my file and I do not know whether to change anything in the words of French style. Y he means to make amends and see one without that works, thank you for your response!</p><p>Jerome &#8230;</p> ]]></content:encoded> </item> <item><title>By: dirk</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-350</link> <dc:creator>dirk</dc:creator> <pubDate>Wed, 25 Aug 2010 12:18:31 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-350</guid> <description>thank you for sharing this script ...</description> <content:encoded><![CDATA[<p>thank you for sharing this script &#8230;</p> ]]></content:encoded> </item> <item><title>By: IDAN</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-278</link> <dc:creator>IDAN</dc:creator> <pubDate>Wed, 03 Mar 2010 16:40:22 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-278</guid> <description>Hello,
How do I add a line to tell script to delete the folder path only PDF files?</description> <content:encoded><![CDATA[<p>Hello,<br
/> How do I add a line to tell script to delete the folder path only PDF files?</p> ]]></content:encoded> </item> <item><title>By: Tony</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-191</link> <dc:creator>Tony</dc:creator> <pubDate>Tue, 19 May 2009 20:11:55 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-191</guid> <description>I like your script too!  How about recursive delete through sub-folders?</description> <content:encoded><![CDATA[<p>I like your script too!  How about recursive delete through sub-folders?</p> ]]></content:encoded> </item> <item><title>By: radje</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-186</link> <dc:creator>radje</dc:creator> <pubDate>Fri, 17 Apr 2009 14:00:09 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-186</guid> <description>hi there,
i tried the vbscript, but i get a error
0 Then
Set objFile = objFSO.GetFile(strFolder &amp; strFileName.Name)
If DateDiff(&quot;N&quot;,objFile.DateLastModified,Now()) &gt; 2 Then
objFSO.DeleteFile(strFolder &amp; strFileName.Name),True
End If
End If
Next
%&gt;
Output error:
Microsoft VBScript runtime (0x800A01A8)
Object required
/axima/download2.asp, line 10
what&#039;s wroing? I only changed the folder</description> <content:encoded><![CDATA[<p>hi there,</p><p>i tried the vbscript, but i get a error</p><p> 0 Then<br
/> Set objFile = objFSO.GetFile(strFolder &amp; strFileName.Name)<br
/> If DateDiff(&#8220;N&#8221;,objFile.DateLastModified,Now()) &gt; 2 Then<br
/> objFSO.DeleteFile(strFolder &amp; strFileName.Name),True<br
/> End If<br
/> End If<br
/> Next</p><p>%&gt;</p><p>Output error:</p><p>Microsoft VBScript runtime (0x800A01A8)<br
/> Object required<br
/> /axima/download2.asp, line 10</p><p>what&#8217;s wroing? I only changed the folder</p> ]]></content:encoded> </item> <item><title>By: Andrew</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-180</link> <dc:creator>Andrew</dc:creator> <pubDate>Tue, 24 Mar 2009 20:17:05 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-180</guid> <description>The trick is in the line:
If DateDiff(&quot;N&quot;,objFile.DateLastModified,Now()) &gt; 59 Then
If you look-up the DateDiff function, it takes a few arguments.  The first is the &quot;N&quot; argument which says, &quot;get the difference in minutes.&quot;  All you need to do is change that to &quot;D&quot; for days.  Then, change the 59 to 90.  It will now only delete files older than 90 days.</description> <content:encoded><![CDATA[<p>The trick is in the line:<br
/> If DateDiff(&#8220;N&#8221;,objFile.DateLastModified,Now()) > 59 Then</p><p>If you look-up the DateDiff function, it takes a few arguments.  The first is the &#8220;N&#8221; argument which says, &#8220;get the difference in minutes.&#8221;  All you need to do is change that to &#8220;D&#8221; for days.  Then, change the 59 to 90.  It will now only delete files older than 90 days.</p> ]]></content:encoded> </item> <item><title>By: Daniel</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-179</link> <dc:creator>Daniel</dc:creator> <pubDate>Tue, 24 Mar 2009 20:12:15 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-179</guid> <description>I like your script, but how do I make it delete files older then 90 days not mins?</description> <content:encoded><![CDATA[<p>I like your script, but how do I make it delete files older then 90 days not mins?</p> ]]></content:encoded> </item> <item><title>By: Alinda</title><link>http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/comment-page-1/#comment-176</link> <dc:creator>Alinda</dc:creator> <pubDate>Tue, 24 Mar 2009 09:51:57 +0000</pubDate> <guid
isPermaLink="false">http://halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/#comment-176</guid> <description>Thanks! This is what i&#039;m looking for and it works great! ^_^</description> <content:encoded><![CDATA[<p>Thanks! This is what i&#8217;m looking for and it works great! ^_^</p> ]]></content:encoded> </item> </channel> </rss>
<!-- This Quick Cache file was built for (  halfloaded.com/blog/vbscript-delete-all-files-older-than-one-hour/feed/ ) in 0.24488 seconds, on May 19th, 2012 at 1:08 am UTC. -->
<!-- This Quick Cache file will automatically expire ( and be re-built automatically ) on May 19th, 2012 at 2:08 am UTC -->
