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

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
 
D

Dave Patrick

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
|
|
 
P

Pegasus \(MVP\)

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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top