Fleet Command Posted September 8, 2009 Share Posted September 8, 2009 Hi, everyone. I would like to configure CCleaner to delete files with certain file names (such as checklist.ms, _cache.tmp or thumbs.db) from a folder and all its subfolder every time I perform a cleanup. But I can't get it right. I tried Include or Exclude feature but somehow it not all the files are found. I visited help section too but to no use. Can anyone please tell me how to this? Thanks in advance Link to comment Share on other sites More sharing options...
fireryone Posted September 8, 2009 Share Posted September 8, 2009 maybe if you used modified your own winapp2.ini file : http://docs.piriform.com/ccleaner/advanced...leaner-to-clean fireryone Link to comment Share on other sites More sharing options...
ident Posted September 8, 2009 Share Posted September 8, 2009 Hi, everyone. I would like to configure CCleaner to delete files with certain file names (such as checklist.ms, _cache.tmp or thumbs.db) from a folder and all its subfolder every time I perform a cleanup. But I can't get it right. I tried Include or Exclude feature but somehow it not all the files are found. I visited help section too but to no use. Can anyone please tell me how to this? Thanks in advance you need to wild card the entry. By default ccleaner adds *.* Go to options - tools - include - add folder - when the dialog appears in the bottom left you will see another textbox with the value *.* change this to *.ms (or what ever name you want) you will need to add a new entry for each wild card No fate but what we make Link to comment Share on other sites More sharing options...
Fleet Command Posted September 8, 2009 Author Share Posted September 8, 2009 maybe if you used modified your own winapp2.ini file : http://docs.piriform.com/ccleaner/advanced...leaner-to-clean Thanks. I'll try that. I hope it's not complicated. you need to wild card the entry. By default ccleaner adds *.* Go to options - tools - include - add folder - when the dialog appears in the bottom left you will see another textbox with the value *.* change this to *.ms (or what ever name you want) you will need to add a new entry for each wild card It's to no use because: I did that but CCleaner only found a single .ms file, the one in the root folder. No .ms from subfolders. I have other files .db extension that are valid database files instead of thumbs.db. Link to comment Share on other sites More sharing options...
ident Posted September 8, 2009 Share Posted September 8, 2009 I did that but CCleaner only found a single .ms file, the one in the root folder. No .ms from subfolders. I have other files .db extension that are valid database files instead of thumbs.db. CCleaner does not include subfolders when adding a folder to include. you will have add each folder. #Maybe this is a new possible suggestion you could ask for? an option to wild card files and then search it's sub dirs? But as it currently stands it will only clean the added dir. No sub. No fate but what we make Link to comment Share on other sites More sharing options...
Fleet Command Posted September 8, 2009 Author Share Posted September 8, 2009 Thanks. I'm going to suggest it. (I cannot add all subfolders. There are 227 folders and subfolders.) Link to comment Share on other sites More sharing options...
ident Posted September 8, 2009 Share Posted September 8, 2009 Thanks. I'm going to suggest it. (I cannot add all subfolders. There are 227 folders and subfolders.) I think it could prove quite a useful suggestion to some people. Manually adding 200 sub folders would become very tedious No fate but what we make Link to comment Share on other sites More sharing options...
Fleet Command Posted September 8, 2009 Author Share Posted September 8, 2009 winsys2.ini method is not working properly. For example, although this code works... [Thumbs.db files on Drive K]LangSecRef=3002Default=FalseFileKey1=k:\Images|*.db|RECURSEFileKey2=k:\Images|*.ms|RECURSE ...this one doesn't work at all: [Thumbs.db files on Drive K]LangSecRef=3002Default=FalseFileKey1=k:\Images|Thumbs.db|RECURSEFileKey2=k:\Images|Checklist.ms|RECURSE The second code finds absolutely nothing. EDIT: Same for winapp2.ini. This code works: [Thumbs.db files on Drive K]Section=ExperimentalDefault=TrueDetect=HKLM\SoftwareFileKey1=k:\Images|*.db|RECURSE But this one doesn't: [Thumbs.db files on Drive K]Section=ExperimentalDefault=TrueDetect=HKLM\SoftwareFileKey1=k:\Images|thumbs.db|RECURSE Link to comment Share on other sites More sharing options...
Moderators Andavari Posted September 9, 2009 Moderators Share Posted September 9, 2009 I think your solution is to resort to a good ole batch file for removal. If you do make a batch file hidden files like thumbs.db may need attributes removed like hidden, etc., for them to actually be deleted. Link to comment Share on other sites More sharing options...
Fleet Command Posted September 9, 2009 Author Share Posted September 9, 2009 Yeah. I think I can write a Windows PowerShell scriptlet. One more thing to remember to run on each ocassion... Link to comment Share on other sites More sharing options...
marmite Posted September 9, 2009 Share Posted September 9, 2009 Sounds like you need another script that executes "all of the things you need to remember to run" Link to comment Share on other sites More sharing options...
mike42 Posted October 6, 2009 Share Posted October 6, 2009 winsys2.ini method is not working properly. For example, although this code works... [Thumbs.db files on Drive K]LangSecRef=3002Default=FalseFileKey1=k:\Images|*.db|RECURSEFileKey2=k:\Images|*.ms|RECURSE ...this one doesn't work at all: [Thumbs.db files on Drive K]LangSecRef=3002Default=FalseFileKey1=k:\Images|Thumbs.db|RECURSEFileKey2=k:\Images|Checklist.ms|RECURSE The second code finds absolutely nothing. EDIT: Same for winapp2.ini. This code works: [Thumbs.db files on Drive K]Section=ExperimentalDefault=TrueDetect=HKLM\SoftwareFileKey1=k:\Images|*.db|RECURSE But this one doesn't: [Thumbs.db files on Drive K]Section=ExperimentalDefault=TrueDetect=HKLM\SoftwareFileKey1=k:\Images|thumbs.db|RECURSE I have pointed out this problem about two or three times already some time ago. http://forum.piriform.com/index.php?showtopic=19175 http://forum.piriform.com/index.php?showtopic=19877 And a similar problem: http://forum.piriform.com/index.php?showtopic=20533 I have also received the suggestion to write a DOS batch file and things like that. In my opinion a cleaner program should be able to do such basic things and NOT require additional DOS-batches to be run. After all, recursing for "*.ext" wildcards works, so why not make it work for "name.ext" files? Link to comment Share on other sites More sharing options...
FleetCommand@live.com Posted November 25, 2009 Share Posted November 25, 2009 Hi, again, people. It's the original poster of this topic, Fleet Command. I just wanted to notify you all that the issue is resolved. Developers of CCleaner have implemented this feature. The INI file now work correctly. Thanks to all who helped. And thanks developers, thank you for having implemented this feature. This topic can now be safely marked as [Resolved]. Link to comment Share on other sites More sharing options...
5secondnews.com Posted December 2, 2009 Share Posted December 2, 2009 *** removed my own scripts *** mod says i'm advertising for my 0$/month site... sorry guys! Link to comment Share on other sites More sharing options...
mike42 Posted December 3, 2009 Share Posted December 3, 2009 Holy s...! What is this!? How come we find a several page DOS script for deleting temp files in a forum board of a Windows-GUI program doing exactly that task (only more flexible)? The issue of this thread was originally that something was not working right in CCleaner, not a lecture in DOS scripting. I am sure you can do everything with a DOS batch or you could even recode it in C, but what's the point? As pointed out by FleetCommand ... This topic can now be safely marked as [Resolved]. ... the issue is resolved. So I advise the Mods to close this thread before someone posts how to rewrite your operating system. I am sure, Mr. 5secondnews.com, your suggestion was well-intentioned. That's +3 points for programming skills but -10 for wrong forum. kind regards, Mike PS: please excuse my sarcasm PPS: Btw, it is a much debated issue whether it is a good idea to clean the prefetch cache. (see http://www.populartechnology.net/2005/10/c...ation-load.html ) Link to comment Share on other sites More sharing options...
JDPower Posted December 4, 2009 Share Posted December 4, 2009 PPS: Btw, it is a much debated issue whether it is a good idea to clean the prefetch cache. (see http://www.populartechnology.net/2005/10/c...ation-load.html ) Nice link, pretty much sums up my opinion on prefetch cleaning (I would like to see it removed from CC but unfortunately suspect it never will be) and some interesting discussion in the comments section. Link to comment Share on other sites More sharing options...
Moderators hazelnut Posted December 4, 2009 Moderators Share Posted December 4, 2009 Just to make it clear, we are not going to have a return of the 'prefetch wars' that used to happen here. Many posts were made all over the internet and here by Mastertech (also known as Andrew and various other names) People either delete prefetch or they don't. Support contact https://support.ccleaner.com/s/contact-form?language=en_US&form=general or support@ccleaner.com Link to comment Share on other sites More sharing options...
mike42 Posted December 4, 2009 Share Posted December 4, 2009 Just to make it clear, we are not going to have a return of the 'prefetch wars' that used to happen here. Sure thing! I think, if someone doesn't want to delete their prefetch cache, they should simply not tick that little check box. No more, no less. As it seems, the whole thing is a question of belief, so there's no point in arguing. Wars about belief usually end up in a mess, as we know. But: I still find it sensible to point out that ...... Arghhhh, just read that article above, then you know what I mean. Btw: I realize just now that this has nothing more to do with the thread topic, sorry for that. I just mentioned it because it was in this DOS script. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now