I've never really written Windows scripts before, although I do have a programming background. What I'd like to do is write a script that will delete the oldest file (according to the date modified) in a particular folder once a day. There will not be any more than 5 files in this particular folder at any given time.
This script will be run in Windows Server 2008 R2.
Can someone offer a little assistance here? Thanks very much.