中国DOS联盟论坛

China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --
Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
Guest | Log in | Register | Members | Search | China DOS Union
中国DOS联盟论坛
The time now is 2026-08-13 06:41
47,811 topics / 349,897 posts / today 0 new / 48,256 members
DOS批处理 & 脚本技术(批处理室) » Help, how to use a for loop to delete empty directories
Printable Version  1,563 / 6
Floor1 danjiang Posted 2008-07-02 15:06
初级用户 Posts 45 Credits 79
How to use a for loop to delete empty directories
Floor2 danjiang Posted 2008-07-02 20:58
初级用户 Posts 45 Credits 79
Like
for /r /d %%a in (*.*) do rd "%a"
Floor3 danjiang Posted 2008-07-07 17:44
初级用户 Posts 45 Credits 79
No answer, is the question too complicated?
Floor4 lxmxn Posted 2008-07-07 23:06
版主 Posts 4,938 Credits 11,386
Since this issue has been discussed several times, there's no need to repeat answering your question.
Floor5 danjiang Posted 2008-07-08 12:05
初级用户 Posts 45 Credits 79
Thanks a lot.

Searched for "delete empty directory" and didn't find it.

Searched for "delete empty directory" and then found it.
Floor6 Climbing Posted 2008-07-08 15:31
铂金会员 Posts 2,753 Credits 6,962 From 河北保定
Floor7 zhclvip Posted 2010-01-06 09:04
初级用户 Posts 50 Credits 138
What you're deleting a directory that's not empty!
[ Contact the Union admin team - 中国DOS联盟 - Standard version ]
Sponsored by ifanr Inc | © 2001–2023