# BATCH HOW TO CHECK IF FOLDER IS EMPTY for /F %%i in ('dir /b /a "folderpath*"') do ( echo if you see this the folder is NOT empty )