I need a batch file to traverse a directory structure that looks like this
C:\CruiseControl\ProjectArtifacts\ProjectName1\Logs C:\CruiseControl\ProjectArtifacts\ProjectName1\Src C:\CruiseControl\ProjectArtifacts\ProjectName1\Data C:\CruiseControl\ProjectArtifacts\ProjectName2\Logs C:\CruiseControl\ProjectArtifacts\ProjectName2\Src C:\CruiseControl\ProjectArtifacts\ProjectName2\Data C:\CruiseControl\ProjectArtifacts\ProjectName3\Logs C:\CruiseControl\ProjectArtifacts\ProjectName3\Src C:\CruiseControl\ProjectArtifacts\ProjectName3\Data
And so on...
The project name is always unique and there can be up to 100 variations on the ProjectName folder.
I want to delete the Src folder and all files/folders contained within it for each project. The Logs and Data folders should NOT BE deleted in this process. How can I go about doing this?
let me know if you need more info.