mike42 Posted February 20, 2009 Share Posted February 20, 2009 I wonder if the following is possible with ccleaner: I've got a folder tree like that: D: |_Cplusplus |_MyProject1 | |_Data | |_obj | |_bin |_MyProject2 |_Data |_obj |_bin I want ccleaner to remove the folders "obj" and "bin" with all their files AND subfolders. This should be done in the winapp2.ini. The "MyProject" folders should not be hard coded, ie. I don't want to put a line for each "MyProject" folder. I want ccleaner to start in the "Cplusplus" folder and search all subfolders (the project folders) for "obj" and "bin" foders. Can anyone tell me what lines I should put in the winapp2.ini? I tried FileKey1=D:\Cplusplus|obj|RECURSE but that doesn't work. Thanks, Mike Link to comment Share on other sites More sharing options...
Keithuk Posted February 20, 2009 Share Posted February 20, 2009 Well Mike you can add folder with Options\Included and find you folder name. That will show *.* files in that folder. Select the folder and click Edit and change the *.* to *.obj. Then you add the same folder again but change the extension to *.bin. That should delete all those files in that folder. Now I've never need to use this option but you could just copy some *.obj and *.bin files into there and doo a clean to see if it works. Keith Windows XP 2002 SP3 IE 7.0 Martin2k Rorshach112 is the best Link to comment Share on other sites More sharing options...
kmillerusaf Posted February 20, 2009 Share Posted February 20, 2009 FileKey1=D:\Cplusplus\obj|*.*|REMOVESELF would seem more reasonable. Take a look here: How to add your own program for CCleaner to clean Keith There's always an exception to the rule. I'm that exception. Desktop ----- AMD Athlon 3700+ (2.64Ghz), 2GB DDR 400, ASUS A8N-SLI Premium, 500GB HD, Windows XP Pro SP3, Avira Antivir Personal At work ----- Intel C2D T1700 (1.6Ghz), 2GB DDR2 667, Dell OUY141, 80GB HD, Windows XP Pro SP2, Symantec 10 Laptop ----- Intel C2D P8400 (2.4 Ghz), 4GB DDR3 1066, Mainboard, 160GB HD, Dualboot: Windows 7/openSUSE 11.1, Avira Antivir Personal Link to comment Share on other sites More sharing options...
mike42 Posted February 20, 2009 Author Share Posted February 20, 2009 Well Mike you can add folder with Options\Included and find you folder name. That will show *.* files in that folder. Select the folder and click Edit and change the *.* to *.obj. Then you add the same folder again but change the extension to *.bin. That should delete all those files in that folder. You probably mean obj.*. However, that does not find the obj folders within the MyProject folders. It seems, ccleaner doesn't recurse in this case. I would have to manually include a search path for every single project. Link to comment Share on other sites More sharing options...
mike42 Posted February 20, 2009 Author Share Posted February 20, 2009 FileKey1=D:\Cplusplus\obj|*.*|REMOVESELF would seem more reasonable. Same as in my previous post. This doesn't recurse when searching for obj folders. It finds a "D:\Cplusplus\obj" folder but not a "D:\Cplusplus\MyProject\obj" folder. Link to comment Share on other sites More sharing options...
kmillerusaf Posted February 20, 2009 Share Posted February 20, 2009 My mistake. FileKey1=D:\Cplusplus\MyProject1\obj|*.*|REMOVESELF How's that? There's always an exception to the rule. I'm that exception. Desktop ----- AMD Athlon 3700+ (2.64Ghz), 2GB DDR 400, ASUS A8N-SLI Premium, 500GB HD, Windows XP Pro SP3, Avira Antivir Personal At work ----- Intel C2D T1700 (1.6Ghz), 2GB DDR2 667, Dell OUY141, 80GB HD, Windows XP Pro SP2, Symantec 10 Laptop ----- Intel C2D P8400 (2.4 Ghz), 4GB DDR3 1066, Mainboard, 160GB HD, Dualboot: Windows 7/openSUSE 11.1, Avira Antivir Personal Link to comment Share on other sites More sharing options...
mike42 Posted February 20, 2009 Author Share Posted February 20, 2009 FileKey1=D:\Cplusplus\MyProject1\obj|*.*|REMOVESELF Well, yes of course that works. But everytime I create a new project I have to add another line in the winapp2.ini. That is not the intention of an automatic cleaner tool. (see my OP) 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