os/persistentdata/traceservices/tracefw/integ_test/ost/TEF/group/deletetracesfolders.bat
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 @rem
     2 @rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
     3 @rem All rights reserved.
     4 @rem This component and the accompanying materials are made available
     5 @rem under the terms of "Eclipse Public License v1.0"
     6 @rem which accompanies this distribution, and is available
     7 @rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 @rem
     9 @rem Initial Contributors:
    10 @rem Nokia Corporation - initial contribution.
    11 @rem
    12 @rem Contributors:
    13 @rem
    14 @rem Description: 
    15 @rem
    16 @echo off
    17 SETLOCAL
    18 REM Set root folder to one level above location of this batch file:
    19 SET rootfolder=%~dp0\..
    20 REM Set name of folder to be deleted:
    21 SET foldername=traces
    22 REM Change to root folder:
    23 PUSHD "%rootfolder%"
    24 REM Delete matching folder in root of current directory:
    25 RD /S /Q "%foldername%"
    26 REM Delete any other matching folders in all subdirectories:
    27 FOR /F "tokens=*" %%a IN ('DIR /B /S /AD "%foldername%"') DO RD /S /Q "%%a"
    28 echo All '%foldername%' folders deleted under '%cd%'
    29 POPD
    30 ENDLOCAL