Add notice to Include and Exclude

We couldnt ask for anything more. Thanks MrG :D

Thanks for considering our collective effort MrG! B)

Jamin4u

Thanks MrG for implementing the ability to edit items. Much appreciated. I would futher like to request the ability to selectively enable/disable items for TS or times when you dont always want to clean everything in the 'Inlcude list'.

Here is a new concept image I made...

About the new editing feature... This is really a step forward. Thanks again MrG for this.

For those that arent familiar with the feature goto Options>Inlcude

1. Select the file you want to edit

2. Click the edit button

3. Edit the file mask (or select a different file/folder)

Thanks MrG for implementing the ability to edit items. Much appreciated. I would futher like to request the ability to selectively enable/disable items for TS or times when you dont always want to clean everything in the 'Inlcude list'.

Here is a new concept image I made...

About the new editing feature... This is really a step forward. Thanks again MrG for this.

For those that arent familiar with the feature goto Options>Inlcude

1. Select the file you want to edit

2. Click the edit button

3. Edit the file mask (or select a different file/folder)

Just noticed that there is also a right click menu:

- Edit

- Manual Edit

- Remove Selected

Selecting 'Manual Edit' does work as expected.

(i was breaking my brain trying to get rid of those asterisks

http://forum.piriform.com/index.php?s=&...t&p=118910 ) :P

Just noticed that there is also a right click menu:

- Edit

- Manual Edit

- Remove Selected

Selecting 'Manual Edit' does work as expected.

I didnt know about that. Thanks for mentioning it!

I wish the Edit button performed the action of "Manual edit".

Just noticed that there is also a right click menu:

- Edit

- Manual Edit

- Remove Selected

Selecting 'Manual Edit' does work as expected.

(i was breaking my brain trying to get rid of those asterisks

http://forum.piriform.com/index.php?s=&...t&p=118910 ) :P

I noticed the right click menu last night but I really don't know what to use any of it for.

1) What are the asterisks for?

2) Could anyone give me some examples of how and why you will use the new edit function?

I noticed the right click menu last night but I really don't know what to use any of it for.

1) What are the asterisks for?

2) Could anyone give me some examples of how and why you will use the new edit function?

In Regular Expressions the wild char '*' stands for 'any alpha-numeric string'

Let's say, for instance, you want clean (or exclude) a customized folder named 'My Pictures'

The previous versions of CCleaner were cleaning (or excluding) the whole content of that folder.

Now you can edit the path to clean, and using the '*' wildchar you can selectively choose which type of file delete (or exclude).

For instance, a given path 'My Pictures/*.bmp' will delete (or exclude) all the images of bitmap type only,

the path 'My Pictures/*.jpg' will delete (or exclude) all the files of jpg type only, and so on...

Using the same wild char before the dot, will filter the files to delete (or exclude) by filename.

Eg. 'My Pictures/10*.jpg' will delete (or exclude) all images of .jpg type, IF their name start with 10

(101.jpg, 102.jpg, 10A.jpg, 10A1.jpg, and so on... )

Obviously 'My pictures/10*.*' will delete (or exclude) all type of files IF their name start with 10.

Thanks Whiteshark for that explanation of how the new edit function can be used.

I agree with Disk4mat regarding adding the the ability to selectively enable/disable items.

I hope it can be added in a future version of CCleaner.

Whiteshark gave a good explanation! Along with the * you can also use a ?

The ? represents a single (alpha or numeric) character. Here is an example.

Example 1: Accept?Files.exe

Will find:

Accept1Files.exe, Accept8Files.exe, AcceptZFiles.exe

Wont find:

Accept91Files.exe, AcceptXYZFiles.exe

Example 2: Image??.jpg

Will find:

Image01.jpg, Image99.jpg, ImageXY.jpg

Wont find:

Image1.jpg, Image212.jpg, ImageXYZ.jpg

Unlike the * the ? only represents a single character.

Thanks to you as well Disk4mat for your input.

I will be able to put the new edit function to use.

Will both suggestions only work for file and folder names, or will it work for dates as well?

Lets say you want to keep logs for a program for xx days.

Only for file/folder names. Sadly you cant include or exclude based on date created/modified. If the file had the date in the file name, then it would work.

Here is an example a few log files CC found on my sys.

C:\ProgramData\Acronis\TrueImage\Logs\Wednesday__October_29__2008_1_29_11_PM.log

C:\ProgramData\Acronis\TrueImage\Logs\Wednesday__October_28__2008_1_29_12_PM.log

C:\ProgramData\Acronis\TrueImage\Logs\Friday__September_19__2008_1_29_13_PM.log

If I wanted to exclude logs createed on a Friday for every month I would use this

Friday__*_??__200?_*.log

Note for the year I replaced 8 with a ? so the year can be 2008 or 2009. Keep in mind this is only an example and there are numerous ways to create patterns.

Lets say you want to keep logs for a program for xx days.
That would make a great feature request. Only delete file(s) that are x days old. You might start a new thread for that.