All these types of things can be done with VBS file. Then you can put the file in the scheduler of hosting server.
VBS file is one containing VBScript and with extension .vbs. You can do almost all things you do in a typical ASP page with VBScript (connect to database, send a mail etc. etc.) There are slight syntax and command variations.
More help on VBS can be had from
http://www.w3schools.com/vbscript/default.asp
Please note that, simply having a .vbs file on your server is not enough for this. You need to put it on scheduler of server to run once everyday at a particular time. You will require help of server administrator for this.