Jump to content
CCleaner Community Forums

"Include" option for folder removal


Recommended Posts

EDIT: This was reported in the bugs section ( http://forum.piriform.com/index.php?showtopic=27089 ) I don't know if this is a confirmed bug in v2.29.1111 or a design change. Because I guess in previous versions, subfolders *were* removed.

----------

In v2.29.1111 in the "Include" section, I've added the following:

 

[x] Drive or Folder

C:\Documents and Settings\USERNAME\Local Settings\Temp\

[ ] File

 

[x] All Files

[ ] File Types

 

[x] Recurse Subfolders

 

So the rule is the following:

 

C:\Documents and Settings\USERNAME\Local Settings\Temp\*.*

 

----

 

Let's say I create a folder under "C:\Documents and Settings\USERNAME\Local Settings\Temp\" called "TEST":

 

C:\Documents and Settings\USERNAME\Local Settings\Temp\TEST

 

Then, inside this folder, "TEST", I create a file "New Text Document.txt"

 

Now, when I run CCleaner. It will use my custom "Include" rule, and it will destroy "New Text Document.txt"

but the folder, "TEST" will still remain.

 

----

 

I was wondering if you could give the option to remove the subfolders so...

 

C:\Documents and Settings\USERNAME\Local Settings\Temp\*.*

 

would delete not only all the files (which is an option already given), but it would also delete:

 

C:\Documents and Settings\USERNAME\Local Settings\Temp\UNUSEDFOLDER_1

C:\Documents and Settings\USERNAME\Local Settings\Temp\UNUSEDFOLDER_2

C:\Documents and Settings\USERNAME\Local Settings\Temp\UNUSEDFOLDER_3\UNUSEDFOLDER_A

 

etc...

 

Maybe even include an option to remove the parent folder too. In my provided example, I still want to keep the

"\Temp\" folder but sometimes there are instances where programs, when run, create folders that I no longer want around.

 

For example, lets say "SOMESOFTWARE_V1.exe" creates a folder and residual files:

 

C:\Documents and Settings\USERNAME\Local Settings\FOOBAR1

C:\Documents and Settings\USERNAME\Local Settings\FOOBAR1\readme.txt

C:\Documents and Settings\USERNAME\Local Settings\FOOBAR1\settings\settings.ini

C:\Documents and Settings\USERNAME\Local Settings\FOOBAR1\image_temp\image1.gif

 

so, I create a rule:

 

C:\Documents and Settings\USERNAME\Local Settings\FOOBAR1\*.*

 

But I also want to remove the folder "FOOBAR1" after it's done cleaning all the contents of the subfolders.

 

----

 

I hope my examples were somewhat clear and that you at least consider these options for future builds.

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...