Jump to content

Wildcards in Include/Exclude?


Rod Lockwood

Recommended Posts

On Ultra WinCleaner?s Junk Cleaner window there is an option to add files that you want UWC to search for and remove. CCleaner has this too with the Include window under Options, but unless you know the specific name(s) of the files this is no good, or can you use wildcards in the filenames like you can with UWC?

 

Later,

Rod

Link to comment
Share on other sites

  • Moderators
I am also wondering if it is possible to add let's say *.bak, *.old, Thumbs.db etc and let CCleaner scan for those? Not just in a particular folder, but the whole hard-disk(s).

I imagine you could if you made a winapp2.ini entry. The only problem is it may actually slowdown CCleaner tremendously since it will have to search the whole hard disk. You could actually do this with a batch file and use that batch file once in awhile.

Link to comment
Share on other sites

I imagine you could if you made a winapp2.ini entry. The only problem is it may actually slowdown CCleaner tremendously since it will have to search the whole hard disk. You could actually do this with a batch file and use that batch file once in awhile.

 

Thanx for the answer. I have absolutely no clue on how to make a batch file like that though.

If anyone would make me one, it would be nice. I have 2 hard-disks(C and D) and running Vista sp1 64 bit.

Link to comment
Share on other sites

I imagine you could if you made a winapp2.ini entry. The only problem is it may actually slowdown CCleaner tremendously since it will have to search the whole hard disk. You could actually do this with a batch file and use that batch file once in awhile.

Would it slow down CCleaner any more than when I use UWC to do the job (also take into consideration opening and closing a separate program)?

 

Later,

Rod

Link to comment
Share on other sites

  • Moderators
Thanx for the answer. I have absolutely no clue on how to make a batch file like that though.

If anyone would make me one, it would be nice. I have 2 hard-disks(C and D) and running Vista sp1 64 bit.

Use this at your own risk, I bear no responsibility if it screws up your system! And do note that some software products may have very valid reasons for making .bak and .old files.

This will probably take several seconds to minutes depending upon the size of your drives, and the amount of files/folders those drives contain. I don't know if it works the same on Vista as it does in XP.

 

Instructions:

1. Copy what's listed in the code below.

2. Open Notepad and paste in the copied code.

3. In Notepad click File->Save As (including the quotes): "Delete More Junk Files.bat"

 

attrib /s -r -h -s "C:\*.bak"attrib /s -r -h -s "C:\*.old"attrib /s -r -h -s "C:\thumbs.db"del /s "C:\*.bak"del /s "C:\*.old"del /s "C:\thumbs.db"attrib /s -r -h -s "D:\*.bak"attrib /s -r -h -s "D:\*.old"attrib /s -r -h -s "D:\thumbs.db"del /s "D:\*.bak"del /s "D:\*.old"del /s "D:\thumbs.db"clsexit

 

Link to comment
Share on other sites

  • Moderators
Would it slow down CCleaner any more than when I use UWC to do the job (also take into consideration opening and closing a separate program)?

Like I stated before I imagine it would slow down CCleaner, actually I know it would - simply for the fact being it would have to search in every folder on your disk for the "junk files."

 

The opening and closing speed of CCleaner shouldn't be effected hence with winapp2.ini entries all it's doing is reading the contents of winapp2.ini, and allowing the cleaning routines to be carried out.

 

I've never used or heard of UWC, therefore I have no ideal how long it takes, etc.

Link to comment
Share on other sites

Use this at your own risk, I bear no responsibility if it screws up your system! And do note that some software products may have very valid reasons for making .bak and .old files.

This will probably take several seconds to minutes depending upon the size of your drives, and the amount of files/folders those drives contain. I don't know if it works the same on Vista as it does in XP.

 

Instructions:

1. Copy what's listed in the code below.

2. Open Notepad and paste in the copied code.

3. In Notepad click File->Save As (including the quotes): "Delete More Junk Files.bat"

 

attrib /s -r -h -s "C:\*.bak"attrib /s -r -h -s "C:\*.old"attrib /s -r -h -s "C:\thumbs.db"del /s "C:\*.bak"del /s "C:\*.old"del /s "C:\thumbs.db"attrib /s -r -h -s "D:\*.bak"attrib /s -r -h -s "D:\*.old"attrib /s -r -h -s "D:\thumbs.db"del /s "D:\*.bak"del /s "D:\*.old"del /s "D:\thumbs.db"clsexit

 

 

Thanx man, works great! And easy to add more wildcards if I want also:)

BTW, does this take care of hidden (system)files as well?

Link to comment
Share on other sites

I've never used or heard of UWC, therefore I have no ideal how long it takes, etc.

UWC is now call WinCleaner OneClick Cleanup and is made by Business Logic. (http://www.wincleaner.com/)

 

I have a 40G hard drive and it takes three to five minutes to clean all the files that I mark. Temporary files (*$*.*$*, *.tmp*, etc.), backup files (*.old, *.bak), check disk files, temporary files created by Windows help system, temporary directory information files (including Thumbs.DB), and lost cluster files. These are on the safe files list. Custom cleaning which may be added and edited are Word backup files (already came with UWC), null OEM-INF files (every time I installed new hardware Windows ME would create hundreds of thousands of these in the Windows/INF folder; XP still creates a dozen or so), Serif Photo Plus browse files, other backup files (*.bac) and Axialis IconMaker browse files. The files in italics I uncheck, so UWC doesn?t search for these. You also get a list to double check before the files are actually deleted.

 

I also do the one 80G external drive. It takes about ten minutes. Searching for shortcuts and removing empty folders takes about the same amount of time. But then UWC doesn?t give you a list of the folders to check. So it then takes me about fifteen minutes to go back to the recycle bin to put back the ones that are needed. They never fixed this in the OneClick Cleanup. I tried putting dummy files in the empty folder that are to be left alone, but I came across some folders where this causes problems.

 

I know that if you guys were to do it, you?d do it right.

 

Later,

Rod

Link to comment
Share on other sites

  • Moderators
Thanx man, works great! And easy to add more wildcards if I want also:)

BTW, does this take care of hidden (system)files as well?

It actually removes the attributes only on those selected files of:

* Read-only

* Hidden

* System

Therefore it will kill all of those junk files.

Link to comment
Share on other sites

  • Moderators
Been testing the .bat file a bit more and placing random .old files around my c and d drive. I found out that it doesent always find all files when run. I have tried running the bat file from desktop, c root and d root, but no success.

To my knowledge it will deal with them all when using XP or even older operating systems, like I stated earlier I'm not sure how it would work in Vista. Then again if some application has created them, and if that app is running they can be locked.

 

Maybe you need to right click the BAT file and run it as an Administrator.

Link to comment
Share on other sites

To my knowledge it will deal with them all when using XP or even older operating systems, like I stated earlier I'm not sure how it would work in Vista. Then again if some application has created them, and if that app is running they can be locked.

 

Maybe you need to right click the BAT file and run it as an Administrator.

 

It cant be the system or applications replicating them since I just took a bunch of old pictures(jpg's) I had, renamed them with the .old ext. and then placed them all over.

Also, I dont have uac enabled, so running it in Admin mode would mean nothing(I think). Also, since the .bat file removes some of the .old files but not all, there is not where the problem is. Not sure why that happens :blink:

 

-Edit-

Just tried running it as admin, and then the cmd window barely appears, then dissapear without removing any files..??

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.