Jump to content
CCleaner Community Forums
Sign in to follow this  
1up

"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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...