Graham,
I am also waiting for this feature as well. For right now, I am doing this two different ways. One with a batch script calling a PERL program and one calling a VB script. Here is the VB script I found on the web a few years ago I am using to delete any files older then 3 days on one of my servers:
Option Explicit
Dim fso
Set fso = CreateObject("Scripting.FileSystemObject")
DeleteFiles fso.GetFolder("C:\FACSys\Queue") '<----- Change this folder name to match with your case.
Sub DeleteFiles(srcFolder)
Dim srcFile
If srcFolder.Files.Count = 0 Then
Wscript.Echo "No File to Delete"
Exit Sub
End If
For Each srcFile in srcFolder.Files
If DateDiff("d", Now, srcFile.DateCreated) < -3 Then '<----- Change this value to how many days old you want to test for. This example looks for 3 days old or -3.
fso.DeleteFile srcFile, True
End If
Next
Wscript.Echo "Files Deleted successful"
End Sub
Works great. The VB script name should end with .vbs like "deleteold.vbs". Here is how I execute the vb script:
I first create a batch file "deleteold.bat". In the bat file I put the following:
CD C:\WINNT\system32
wscript C:\deleteold.vbs //B
Then do a command line task in VisualCron calling the bat file.
I hope this helps!!
-Mark