Find Empty Folders & SubFolders

Find Empty Folders & SubFolders
I am wondering if there is a way to do this in Dopus as i would like to delete all folders that do not contain any Files

You can use a filter (Tools > Find Files > Advanced) to find empty folders like this:

Filter - Empty Dirs

(Screenshot taken from!Documents/Filter_Clause_Types.htm which explains filters in more detail.)

Note that this will find all folders whose contents total zero bytes. They may still have files or sub-folders in them, as long as any files are zero bytes as well. If the distinction matters, after the find results are complete, push Ctrl-K (or use Edit > Calculate Folder Sizes) and then sort by the Size column. The folders which are literally empty will say "empty" and be separated from the ones which contain things that total "0 bytes".

Thankyou ,,, I did see this but didnt fully understand it ,,, Ill read up some more ,,, i use dopus often but only the basic stuff

If you are brave enough you can use a DOS command:

// Uses the DOS Command RD which doesn't remove non-empty folders

@echo off
choice /C YN /M "Remove Empty Folders?"
if %errorlevel% EQU 1 for /f "delims=" %%d in ('dir /s /b /ad ^| sort /r') do rd "%%d"

Remove Empty Folders.dcf (758 Bytes)

Sounds good ,,, THanks :slight_smile:

THanks IXP