I'm trying to make a script that will make a copy of a folder (in Windows) every day for the last 7 days. On the 8th day I want it to take the oldest copy and overwrite it and so on and so forth so at any one time I'll have a 7 day "history" of the folder.
Now I've done that previously in Linux simply by telling a daily bash script to copy the folder to "/home/whatever-date +%u'".
date +%u by the way outputs the day of the week. 1 for Mon, 2 for Tue, etc.
In comparison the DOS date command is completely retarded. Is there an easy way to get the day of the week (numeric value) in a DOS batch file or should I just give up and write this in Java?