windows - Check folder is empty using batch command? -


for /f %%i in ('dir /b "c:\program files\apache folder\*.*"') (    echo folder non empty    goto launch_app ) 
  • how check folder empty?

    i tried above command, didn't work.

try this:

for /f %%i in ('dir /b /a "c:\program files\apache folder\*"') (     echo if see folder not empty     goto launch_app ) 

Comments