I want to delete only empty folders from directory before last 30 days using batch. I am using following batch command to delete empty folders but i want to delete only those empty folder which modification date is before 30 days.
for /f "delims=" %%d in ('dir "c:fileworksystem_temp" /s /b /ad ^| sort /r') do rd "%%d"