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