This is not ground breaking code, it's kind of mundane. But it took me 3 hours to get it all working; I'm going to blog it so I don't have to do it again.
This article shows a SQL script and a DOS batch file that can be used to backup an instance of SQL Express, and then to delete files older than x days.