title: Check folder is empty using batch command?
body: <pre><code>for /F %%i in ('dir /b "C:\Program Files\Apache folder\*.*"') do (
     echo Folder is NON empty
     goto launch_app
  )
  </code></pre>
  
  <ul>
  <li><p>How to check a folder is empty?</p>
  
  <p>I tried above command, but it didn't work.</p></li>
  </ul>