Line | |
---|
1 | @ECHO OFF
|
---|
2 |
|
---|
3 | ECHO Clean starting...
|
---|
4 |
|
---|
5 | FOR /F "tokens=*" %%G IN ('DIR /AD /B') DO (
|
---|
6 | IF EXIST "%%G\bin" (
|
---|
7 | ECHO Cleaning "bin" in %%G ...
|
---|
8 | RMDIR /S /Q "%%G\bin"
|
---|
9 | )
|
---|
10 | IF EXIST "%%G\obj" (
|
---|
11 | ECHO Cleaning "obj" in %%G ...
|
---|
12 | RMDIR /S /Q "%%G\obj"
|
---|
13 | )
|
---|
14 | FOR /F "tokens=*" %%T IN ('DIR /AD /B %%G') DO (
|
---|
15 | IF EXIST "%%G\%%T\bin" (
|
---|
16 | ECHO Cleaning "bin" in %%G in version %%T ...
|
---|
17 | RMDIR /S /Q "%%G\%%T\bin"
|
---|
18 | )
|
---|
19 | IF EXIST "%%G\%%T\obj" (
|
---|
20 | ECHO Cleaning "obj" in %%G in version %%T ...
|
---|
21 | RMDIR /S /Q "%%G\%%T\obj"
|
---|
22 | )
|
---|
23 | )
|
---|
24 | )
|
---|
25 |
|
---|
26 | IF EXIST bin (
|
---|
27 | ECHO Cleaning "bin" in current directory ...
|
---|
28 | RMDIR /S /Q bin
|
---|
29 | )
|
---|
30 |
|
---|
31 | IF EXIST TestResults (
|
---|
32 | ECHO Cleaning "TestResults" in current directory ...
|
---|
33 | RMDIR /S /Q TestResults
|
---|
34 | )
|
---|
35 |
|
---|
36 | ECHO Clean finished. |
---|
Note: See
TracBrowser
for help on using the repository browser.