-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy path1_DeleteDir.bat
39 lines (29 loc) · 1.03 KB
/
1_DeleteDir.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
@echo off
set DIRECTORIES=packages, obj, bin, bld, Temp, Build, PrecompiledWeb, .vs
@echo --------------------------------------------------
@echo Delete the %DIRECTORIES% folders.
@echo --------------------------------------------------
@rem カンマをスペースに変換
set w1=%DIRECTORIES:,= %
@rem 連続したスペースを、スペース1個に変換
set w2=%w1: = %
for %%a in ( %w2% ) do (
for /D /R %%i in ( %%a ) do (
if exist "%%~i" RD /S /Q "%%~i"
)
)
pause
set DIRECTORIES=Build, Build_net45, Build_net46, Build_net47, Build_net48, Build_netstd20, Build_netstd21, Build_netcore20, Build_netcore30, Build_netcore50
@echo --------------------------------------------------
@echo Delete the %DIRECTORIES% folders.
@echo --------------------------------------------------
@rem カンマをスペースに変換
set w1=%DIRECTORIES:,= %
@rem 連続したスペースを、スペース1個に変換
set w2=%w1: = %
for %%a in ( %w2% ) do (
for /D /R %%i in ( %%a ) do (
if exist "%%~i" RD /S /Q "%%~i"
)
)
pause