检查文件夹为空使用批处理命令? [英] Check folder is empty using batch command?
本文介绍了检查文件夹为空使用批处理命令?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
for /F %%i in ('dir /b "C:\Program Files\Apache folder\*.*"') do (
echo Folder is NON empty
goto launch_app
)
-
如何检查文件夹为空?
How to check a folder is empty?
我试过了上面的命令,但没有奏效。
I tried above command, but it didn't work.
推荐答案
试试这个:
for /F %%i in ('dir /b /a "C:\Program Files\Apache folder\*"') do ( echo if you see this the folder is NOT empty goto launch_app )
这篇关于检查文件夹为空使用批处理命令?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文