Revert "清理"
猿人易 authored at 2024-06-17 16:53:31
498.00 B
Stardust
@echo off
set root=%cd%\..\
pushd ..\

::for /r %root% %%i in (*.pdb,*.vshost.*) do (del %%i)

::for /r %root% %%i in (obj,bin) do (IF EXIST %%i RD /s /q %%i)
::for /r %root% %%i in (obj,bin) do (IF EXIST %%i echo %%i %%~ti)
for /f "delims=" %%i in ('dir /ad/b/s .') do (
    if EXIST %%i\bin echo %%i\bin
    if EXIST %%i\bin rd /s/q %%i\bin
    if EXIST %%i\obj echo %%i\obj
    if EXIST %%i\obj rd /s/q %%i\obj
)
::for /f "delims=" %%i in ('dir /ad/b .') do (if EXIST %%i\bin echo %%i\bin)

popd