@echo off
::设置目标文件夹
set m=C:\Users\Desktop\新建文件夹
del "%m%\*" /f /s /q /a
for /f "delims=" %%i in ('dir /ad /w /b "%m%"') do (
rd /s /q "%m%\%%i"
)
::设置目标文件夹
set m=C:\Users\Desktop\新建文件夹
del "%m%\*" /f /s /q /a
for /f "delims=" %%i in ('dir /ad /w /b "%m%"') do (
rd /s /q "%m%\%%i"
)