Hello,
This was perfect, just what we were looking for to cleanup the tons of files generated by the sharepoint backups.
Got this script to work with just two minor changes:
- The <PathToTOC> parameter is actually the toc file itself, you call the script with
\\server name\folder name\spbrtoc.xml
- The FSO.DeleteFolder method does not like trailing backslashes in folder names, just like the ones in the SPBackupDirectory node in the TOC file. Had to remove these with a line of VB script.
Works like a charm with these two modifications, thank you.
Best regards,
Daniel Molnar