With the last version of ccleaner
make a folder c:\test and c:\test\toto ands c:\test\tmp
try this ccleaner.ini who specified only delete *.log in c:\test
CCleaner will delete all empty directory and junction !!!
ccleaner.ini :
[Options]
UpdateKey=02/12/2010 03:18:41 PM
Language=1036
(App)Custom Folders=True
BackupPrompt=0
(App)Old Prefetch data=True
(App)User Assist History=False
(App)IIS Log Files=True
(App)Hotfix Uninstallers=True
(App)DNS Cache=True
(App)Run (in Start Menu)=False
(App)Cookies=False
(App)History=False
MSG_CONFIRMCLEAN=False
WINDOW_MAX=1
WINDOW_LEFT=96
WINDOW_TOP=0
WINDOW_WIDTH=957
WINDOW_HEIGHT=692
(App)Mozilla - Cookies=False
(App)Mozilla - Internet History=False
(App)Other Explorer MRUs=False
(App)Recent Documents=True
(App)Recently Typed URLs=False
MSG_WARNMOZCACHE=False
SplitterPositionCleaner=275
SplitterPositionRegistry=222
Include1=PATH|C:\Test\|*.log