sl@0: @rem sl@0: @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies). sl@0: @rem All rights reserved. sl@0: @rem This component and the accompanying materials are made available sl@0: @rem under the terms of "Eclipse Public License v1.0" sl@0: @rem which accompanies this distribution, and is available sl@0: @rem at the URL "http://www.eclipse.org/legal/epl-v10.html". sl@0: @rem sl@0: @rem Initial Contributors: sl@0: @rem Nokia Corporation - initial contribution. sl@0: @rem sl@0: @rem Contributors: sl@0: @rem sl@0: @rem Description: sl@0: @rem sl@0: @echo off sl@0: SETLOCAL sl@0: REM Set root folder to one level above location of this batch file: sl@0: SET rootfolder=%~dp0\.. sl@0: REM Set name of folder to be deleted: sl@0: SET foldername=traces sl@0: REM Change to root folder: sl@0: PUSHD "%rootfolder%" sl@0: REM Delete matching folder in root of current directory: sl@0: RD /S /Q "%foldername%" sl@0: REM Delete any other matching folders in all subdirectories: sl@0: FOR /F "tokens=*" %%a IN ('DIR /B /S /AD "%foldername%"') DO RD /S /Q "%%a" sl@0: echo All '%foldername%' folders deleted under '%cd%' sl@0: POPD sl@0: ENDLOCAL