I need to run a script which will copy a file from one directory to another based on the date it was modified. Basically I have a database dumped into a directory on a daily basis and I want to be able to copy the database from the first of each month to a different directory so that I can delete have all the other files in the folder deleted.
Can anybody help me out?
This is a script which I would like to run on Windows Server 2003.
Thanks in advance.