Any recommendation on a C# utility (open source) that can can cleanup/delete aged files. Ideally runs as a service.
+1
A:
Look at this fresh answer: http://stackoverflow.com/questions/1575493/how-to-delete-empty-subfolders-with-powershell
Rubens Farias
2009-10-15 22:48:24
+1
A:
We use xxcopy scripts that we create and that are executed from task scheduler as Forgotten Semicolon mentions above.
Checkout their command line reference. Their utility is extremely useful and flexible.
Wil P
2009-10-15 22:50:45
+7
A:
Here's a Powershell script that I run as a scheduled task:
dir c:\directory-to-watch | where {$_.LastWriteTime -lt
[DateTime]::Today.AddDays(-7)} | del
Delete all files not touched in the last seven days from c:\directory-to-watch.
Michael Petrotta
2009-10-15 22:51:43
Nice answer, in my experience Powershell is extremely useful. I like looks of that commmand. I should take the time to get more fluent writing ps scripts.
Wil P
2009-10-15 22:54:48