Help - Search - Members
Full Version: Feature Request: Advanced include options
Piriform Forums > Piriform Software > CCleaner Discussion
Spookstaz
Thank you for your great product! I use it all the time and love it! smile.gif

There is one feature which I'd really like to see added into your application. I'd like to see more advanced custom include options.

I am running an application that has many sub folders, going a few levels deep, all of which contain tons of log files. It would be really nice to be able to recursively clean all log files below a given base directory. This app does not clean up after itself, which is rather annoying. My coworker also runs this app at work and eventually managed to crash his computer by filling up his C: with many Gigabytes of log files.

Eg:
..\MyApp\Drivers\DriverA\XXX.log
..\MyApp\Drivers\DriverA\XXX1.log
..\MyApp\Drivers\DriverB\XXX.log
..\MyApp\Drivers\DriverB\XXX.log
..\MyApp\Processes\ProcA\XXX.log
..\MyApp\Processes\ProcA\XXX1.log
..\MyApp\Processes\ProcB\XXX.log
..\MyApp\Processes\ProcB\XXX1.log

Could this advanced cleaning feature be added in a future version?
Andavari
Welcome to the Piriform Forums Spookstaz! smile.gif

This functionality already exists via a making a winapp2.ini entry.


Just an couple of examples based upon what you've posted:

CODE
[*MyApp (Logs)]
LangSecRef=3021
Detect=HKCU\Software\MyApp
Default=True
FileKey1=%ProgramFiles%\MyApp|*.log|RECURSE


CODE
[*MyApp (Logs)]
LangSecRef=3021
DetectFile=%ProgramFiles%\MyApp\MyApp.exe
Default=True
FileKey1=%ProgramFiles%\MyApp|*.log|RECURSE


Also see the Beginners Guide which details some of this. However if you aren't sure about your creation of a winapp2.ini entry download and look at the actual winapp2.ini file for ideals of how to make it work, etc. It's easier to see how a working entry works versus making one from scratch - especially if it's the first one you make.

You could also post what you've made just to make sure it doesn't nuke anything on your system!
Spookstaz
Worked like a charm!! Thank you so much. biggrin.gif

Spookstaz
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.