i wrote a batch file that backup folders from a pc. The backup is stored on a server, for example \server\backup\pc1\folder1\today Now the backup script are running every day one time. At the 11th day its hast eleven subfolder unter folder1. now every day, when he backup again and create a folder eleven it should delete automatically the oldeset one, so that there are ten backup folders again.
I tried to make that with forfiles.exe (integrated in windows). but it didn't work that great with complete folders.
Can you help me?
Thanks!