PC Review


Reply
Thread Tools Rate Thread

Deleting all files in a folder with a timestamp before 30 days ago

 
 
Robert Dufour
Guest
Posts: n/a
 
      13th Feb 2006
I'm not sure I'm in the right newsgroup for this
I have a system. that creates log files automatically and just keeps filling
up the disk. I was thinkingof using the W2000 task scheduler to run a script
every day and delete the files in that folder that are more than 30 days
old.

How can I do this?

Any help appreciated,
Bob


 
Reply With Quote
 
 
 
 
Dave Patrick
Guest
Posts: n/a
 
      13th Feb 2006
http://groups.google.com/group/micro...03481e175601f3

--

Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

"Robert Dufour" wrote:
| I'm not sure I'm in the right newsgroup for this
| I have a system. that creates log files automatically and just keeps
filling
| up the disk. I was thinkingof using the W2000 task scheduler to run a
script
| every day and delete the files in that folder that are more than 30 days
| old.
|
| How can I do this?
|
| Any help appreciated,
| Bob
|
|


 
Reply With Quote
 
Pegasus \(MVP\)
Guest
Posts: n/a
 
      13th Feb 2006

"Robert Dufour" <(E-Mail Removed)> wrote in message
news:%(E-Mail Removed)...
> I'm not sure I'm in the right newsgroup for this
> I have a system. that creates log files automatically and just keeps

filling
> up the disk. I was thinkingof using the W2000 task scheduler to run a

script
> every day and delete the files in that folder that are more than 30 days
> old.
>
> How can I do this?
>
> Any help appreciated,
> Bob
>
>


xxcopy /db#30 /rs /yy /s *.log c:\temp\temp\

xxcopy.exe is a program that you can readily download
from a number of sites.


 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Deleting emails in a public folder older than 30 days cbraxton@newcorp.com Microsoft Outlook Discussion 1 17th Feb 2009 03:33 PM
Adding working days to a timestamp -- please help! almurph@altavista.com Microsoft C# .NET 1 23rd Oct 2008 06:34 PM
Problem deleting vista RC windows folder and program files folder =?Utf-8?B?Um9iIEhvbG1lcw==?= Windows Vista Administration 0 8th Aug 2007 08:42 PM
Want to generate the SAME timestamp for ALL the files in a folder =?Utf-8?B?Smlt?= Windows XP General 1 28th Jun 2007 11:09 PM
deleting files greater than x days James Microsoft VB .NET 2 25th Jan 2006 11:48 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 10:55 PM.