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

  • Thread starter Thread starter Robert Dufour
  • Start date Start date
R

Robert Dufour

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
 
http://groups.google.com/group/micr...d7bc/5103481e175601f3?&hl=en#5103481e175601f3

--

Regards,

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

:
| 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
|
|
 
Robert Dufour said:
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.
 
Back
Top