如何删除所有空目录?

下面这个方法最简单:
for /f “usebackq delims=” %d in ("dir /ad/b/s | sort /R") do rd “%d”
来自: https://stackoverflow.com/questions/7831286/how-to-delete-empty-folders-using-windows-command-prompt

Leave a Reply

Your email address will not be published. Required fields are marked *