os/persistentdata/traceservices/tracefw/integ_test/ost/TEF/group/deletetracesfolders.bat
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/persistentdata/traceservices/tracefw/integ_test/ost/TEF/group/deletetracesfolders.bat Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,30 @@
1.4 +@rem
1.5 +@rem Copyright (c) 2009 Nokia Corporation and/or its subsidiary(-ies).
1.6 +@rem All rights reserved.
1.7 +@rem This component and the accompanying materials are made available
1.8 +@rem under the terms of "Eclipse Public License v1.0"
1.9 +@rem which accompanies this distribution, and is available
1.10 +@rem at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.11 +@rem
1.12 +@rem Initial Contributors:
1.13 +@rem Nokia Corporation - initial contribution.
1.14 +@rem
1.15 +@rem Contributors:
1.16 +@rem
1.17 +@rem Description:
1.18 +@rem
1.19 +@echo off
1.20 +SETLOCAL
1.21 +REM Set root folder to one level above location of this batch file:
1.22 +SET rootfolder=%~dp0\..
1.23 +REM Set name of folder to be deleted:
1.24 +SET foldername=traces
1.25 +REM Change to root folder:
1.26 +PUSHD "%rootfolder%"
1.27 +REM Delete matching folder in root of current directory:
1.28 +RD /S /Q "%foldername%"
1.29 +REM Delete any other matching folders in all subdirectories:
1.30 +FOR /F "tokens=*" %%a IN ('DIR /B /S /AD "%foldername%"') DO RD /S /Q "%%a"
1.31 +echo All '%foldername%' folders deleted under '%cd%'
1.32 +POPD
1.33 +ENDLOCAL