-
Notifications
You must be signed in to change notification settings - Fork 36
Expand file tree
/
Copy pathremove.cmd
More file actions
23 lines (20 loc) · 822 Bytes
/
remove.cmd
File metadata and controls
23 lines (20 loc) · 822 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
@echo off
setlocal enabledelayedexpansion
:: 定义数组元素
set array=fabric_1_16_5 fabric_1_20_1 fabric_1_21 fabric_1_21_6 ^
fabric_1_21_11 fabric_26_1 ^
forge_1_7_10 forge_1_12_2 forge_1_16_5 forge_1_20_1 ^
neoforge_1_21 neoforge_1_21_6 neoforge_1_21_11
:: 遍历数组
for %%a in (%array%) do (
if exist "%%a\src\main\resources\com\coloryr\allmusic\client\core\player\decoder\mp3" (
rmdir "%%a\src\main\resources\com\coloryr\allmusic\client\core\player\decoder\mp3"
)
if exist "%%a\src\main\java\com\coloryr\allmusic\client\core" (
rmdir "%%a\src\main\java\com\coloryr\allmusic\client\core"
)
if exist "%%a\build" rmdir /s /q "%%a\build" "build"
if exist "%%a\.gradle" rmdir /s /q "%%a\.gradle" ".gradle"
if exist "%%a\.idea" rmdir /s /q "%%a\.idea" ".idea"
)
endlocal