标签: batch-file directory
我有这个脚本
for /d %%i in (*) do @dir /b /s /a-d "%%i">nul 2>&1|| @echo "%%i" has no files
暂停 但它只显示同一目录中的空文件夹,如何更改它以显示
答案 0 :(得分:0)
for /d /r %%i in (*) do @dir /b /s /a-d "%%i">nul 2>&1|| @echo "%%i" has no files pause 这个命令有效
for /d /r %%i in (*) do @dir /b /s /a-d "%%i">nul 2>&1|| @echo "%%i" has no files pause