Jump to content

Add notice to Include and Exclude


Jamin4u

Recommended Posts

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?

Link to comment
Share on other sites

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.

max_sig.gif Guide in italiano per CCleaner - Recuva - Defraggler - Speccy

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.
Link to comment
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...

Important Information

By using this site, you agree to our Terms of Use.