Earlier I had posted my .vbs script for deleting files that were more than ‘x’ days old.
I just ran across this script that accomplishes the same thing, using Windows 2003’s native forfiles comand (scroll down to step 4).
rem First Delete old SQL Backup Files
FORFILES /p C:\filename /s /m *.* /d -3 /c “CMD /C del /Q @FILE”
Save the script with a .bat or .cmd extension and schedule it using the Windows Scheduled Tasks applet.