[thelist] Deleting files in folder

Joshua Olson joshua at waetech.com
Mon May 23 11:38:12 CDT 2005

> -----Original Message-----
> From: Sam Carter
> Sent: Monday, May 23, 2005 11:09 AM
> Looking for an "easy" automated way to delete files in a 
> folder that are more than 3 weeks old.
> Suggestions appreciated.


.NET makes writing Windows Services a snap.  There are many things that can
be done as a service OR a scheduled job, but there are definite pluses to
using a service... a few being:

1.  it would be hard for other people to modify the code if it was on a
shared server.  Scheduling script files can be a Pandora's box.
2.  you won't see a shell window on the desktop if you happen to be logged
in locally.
3.  if the process runs long, you can more avoid and/or easily manage
overlapping instances.

Plus, there's a lot of cool things you can do with a service that would be
hard with a scheduled job:

1.  take advantage of CPU availability if the process is going to take a
2.  process file expirations in near real-time instead of running only every
few minutes/hours/days.

Joshua L. Olson
WAE Tech Inc.
Phone: 706.210.0168 

Monitor bandwidth usage on IIS6 in real-time:

More information about the thelist mailing list