@echo off
Cd /d %~dp0
If not "%1" == "" cd /d %1
Echo Current directory: %cd%
Pause
For /f "delims=" %%a in ('dir . /b /ad /s ^|sort /r' ) do rd /q "%%a" 2>nul
windows批量删除当前目录下的空文件夹
最新推荐文章于 2024-05-08 23:19:43 发布
@echo off
Cd /d %~dp0
If not "%1" == "" cd /d %1
Echo Current directory: %cd%
Pause
For /f "delims=" %%a in ('dir . /b /ad /s ^|sort /r' ) do rd /q "%%a" 2>nul