Is it possible for CCleaner to do this?

I want CCleaner to clean a custom location lets call it FolderA, I want to delete every file/folder inside FolderA but to leave one single folder alone that's inside, lets call this FolderB, but I also want to delete all the files/folders insideFolderB. Is something like this possible?

D:\FolderA\FolderB

So if possible, how can setup CCleaner to delete everything inside FolderA & FolderB but to leave the actual FolderB?

Try if selecting "Files only" would do the trick. Perhaps you also can use a combination of folders & files added to both the "Include" & "Exclude" options.

1. step

--> options

--> settings

--> include

--> add

--> "Drive or Folder"

--> with "browse" to your destination or manuall "D:\FolderA"

--> Files types -All Files

--> Options "include files and subfolders"

--> OK!

--> Warning-Window confirm with yes

2. step

--> as above

--> include

--> "Drive or Folder"

--> D:\FolderA\FolderB

--> File Types -All Files

--> Options "includes files and subfolders"

--> OK!

--> Warning-Window confirm with yes

thats it

3. step

--> as above

--> exclude

--> "Add"

--> "D:\FolderA\FolderB"

--> "File Types"

--> File Type: -" " (only 1 space)

--> "OK"

it works, i have just try it

-->

can this post someone delete...? has become superfluous

1. step

--> options

--> settings

--> include

--> add

--> "Driver or Folder"

--> with "browse" to your destination or manuall "D:\FolderA"

--> Files types -All Files

--> Options "include files only"

--> OK!

--> Warning-Window confirm with yes

2. step

--> as above

--> include

--> "Drive or Folder"

--> D:\FolderA\FolderB

--> File Types -All Files

--> Options "includes files and subfolders"

--> OK!

--> Warning-Window confirm with yes

thats it

This makes it so folders and things inside said folders do not get deleted, I want everything to get deleted except FolderB

I have not tried if it works, if you have in the 1st step the subfolder include, but in exclude add the

"D:\FolderA" and

"D:\FolderA\FolderB"

...

I've tried this as well, it does prevent FolderB from getting deleted but nothing inside FolderB gets deleted either.

Can you set up your includes and excludes as

includes:

D:\Folder A|*.*

D:\Folder A\Folder B|.

Excludes:

D:\Folder A|Folder B

that might work

1. step

--> options

--> settings

--> include

--> add

--> "Drive or Folder"

--> with "browse" to your destination or manuall "D:\FolderA"

--> Files types -All Files

--> Options "include files and subfolders"

--> OK!

--> Warning-Window confirm with yes

2. step

--> as above

--> include

--> "Drive or Folder"

--> D:\FolderA\FolderB

--> File Types -All Files

--> Options "includes files and subfolders"

--> OK!

--> Warning-Window confirm with yes

thats it

3. step

--> as above

--> exclude

--> "Add"

--> "D:\FolderA\FolderB"

--> "File Types"

--> File Type: -" " (only 1 space)

--> "OK"

it works, i have just try it

-->

this as above works fine, i have just try it... ;-)

^^ Weird it doesn't work for me, I've followed the above, then populated polluted both folders with random junk like "New Folder", "New.zip", "New.txt", "New Briefcase", ect. then copied them even more and the "Folders" and "Briefcase" were still left after running CCleaner (the other files types were no though). And I think I found a bug with CCleaner doing this, after removing "step 2" and "step 3" rules but leaving "step 1" CCleaner still wouldn't delete the files that were left.

i have my mistake ;-)

3. step

--> as above

--> exclude

--> "Add"

--> "D:\FolderA\FolderB"

--> "File Types"

--> File Type: -"FolderB" (the name of the folder)

--> "OK"

i have just tried it 2 times with copied files and folders in FolderA and FolderB

i have my mistake ;-)

3. step

--> as above

--> exclude

--> "Add"

--> "D:\FolderA\FolderB"

--> "File Types"

--> File Type: -"FolderB" (the name of the folder)

--> "OK"

i have just tried it 2 times with copied files and folders in FolderA and FolderB

This works! Thanks for taking the time to figure it out, one small correction though.

line 4

--> "D:\FolderA\FolderB"

should be

--> "D:\FolderA\"

yes :wacko::)