guowenxue
2026-07-06 d97ecd3a2976ff4541bc8d4af9cbadfb245dbcef
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
@echo off
setlocal enabledelayedexpansion
 
call :do_clean
goto :eof
 
:do_clean
call :del_file ".mxproject"
call :del_file ".cproject"
call :del_file ".project"
call :del_file ".clangd"
call :del_file "*.json"
call :del_file "*.ld"
call :del_file "*.s"
call :del_dir  ".settings"
call :del_dir  "Drivers"
call :del_dir  "Debug"
call :del_dir  "Release"
call :del_dir  "build"
exit /b
 
:del_file
if exist "%~1" (
    del /f /q "%~1" >nul 2>&1
)
exit /b
 
:del_dir
if exist "%~1\" (
    rmdir /s /q "%~1" >nul 2>&1
)
exit /b