Jump to content

malonn

Experienced Members
  • Posts

    17
  • Joined

  • Last visited

Posts posted by malonn

  1. 3 hours ago, Andavari said:

    You probably need to run your script (or the program that runs the script) with administrator privileges if it's for instance Windows 10.

    --------

    As to what CCleaner does "under the hood," it's highly unlikely they'll give such details since it's closed source even though they offer a freeware version -- but that doesn't mean free software or open source software.

    I know it's closed source, but it doesn't hurt to ask.

    2 hours ago, nukecad said:

    It will probably depend what programming language you are writing your 'something' in. (I'm not familiar with Python).

    Maybe your best bet would be to ask on a forum dedicated to Python?
    Someone else may have figured it out.

    The only way I have found to do it in a batch is to kill File Explorer, delete the Thumbnail cache, restart File Explorer and let it rebuild the cache.
    You have to do the same and close FE if/when you want to rebuild the icon cache.

    I've had similar problems trying to get the recycle bin icon to refresh without having to close FE and refreshing the whole icon cache.
    You can refresh the bin icon when you empty the bin from a Powershell script. (but that then throws up a UAC warning so not what I want).

    You can use the following in Powershell to remove the thumbnail db so that Windows will rebuild it (you'll need to be in an admin account).
    Maybe you could call Powershell from Python?
    PS. This won't work if you have an Explorer window open so that the db is in use, you'll get an error message.

    
    Remove-Item "C:\" -include "thumbs.db" -recurse -force

     

    That's similar to the way I found to do it too.  I've worked with the process more and more, and have managed to clear the cache, but it requires restarting Explorer.  At the time of my post, I hadn't figured it out.  CCleaner doesn't have to restart Explorer, so them fellers have figured something out.  Oh well, there's no harm I can think of from restarting Explorer. 

    2 hours ago, hazelnut said:

    Thanks for the link.

  2. I am curious how the developers of CCleaner have accomplished an aspect of their product.  How does CCleaner clean the thumbnail cache on Windows?  I'm writing something and part of it requires the thumbnail cache to be deleted.  Trouble is, depending on Windows settings, the cache is almost always locked/in use by the Explorer process.  I can not for the life of me figure out how to unlock these files to delete them.  I've tried the following:

    Always set the "show icons, not thumbnails" setting via registry

    - Close and restart explorer (I think this would work, but halts script--Python)

    - Send a WM_CHANGESETTING message to all Windows

    - Close all open handles to the files

    Does CCleaner not delete the the in-use files?  Disk Cleanup deletes them too, so it must be able to be done.

  3. Today I launched CCleaner (version 5.51.7644--the latest) and went to make some changes to cookies I save and found that CCleaner no longer shows the active cookies on my system.  I'm running the latest Firefox (66.0.3 32-bit) as my browser.  As far as I'm aware, the only change I've made to anything in my system is renaming the pinned Taskbar shortcut for Firefox (it was "Firefox (2)" and I renamed it to "Firefox").  I'm not sure what y'all may need to troubleshoot this problem, but just ask away.

    I have upgraded CCleaner recently to the current (Latest as far as I'm aware) version.  I simple in-place overwrite when I upgrade.  I haven't uninstalled CCleaner once since I originally installed it on my system.  That's a simple enough task, I can start there if someone thinks it will help.

  4. How do I write the entry in an INI to delete an entire folder, not just files located within that folder?

     

     

    EDIT:

     

    Nevermind. Figured it out. I tend to post questions before I exhaust options I know about but haven't tried yet.

  5. I am on W7 x64 SP1.

     

    I disabled the thumbnail cache option, and the thumbnails remain, as I knew they would.

     

    I don't know if there is some sort of system re-route to the D drive. If you all are right, there must be, because CCleaner definitely does clean the thumbnail cache on my D drive.

     

    What could I do to determine if the system drive is routing CCleaner to my D drive?

  6. Drive D:\ ?

     

    I have never seen CCleaner attempt to zap anything on Drive D:\

     

    Is your System drive D:\ ?

    What is the CCleaner checkbox which controls whether or not any *.db is cleaned from Drive D:\ ?

     

    No, my D drive is my backup drive. I store videos and stuff like that on it, but when CCleaner is run it also deletes files from that drive. I like to have thumbnail previews of my videos, but when I run CCleaner, it deletes those thumbnails.

     

    There is a thumbnail cache checkbox, but I don't want to disable it because it clears thumbnails on my C drive. I guess I could, but I'd prefer to add an exception to my D drive, rather than deselect the thumbnail option.

  7. Can you post exactly what exclusion(s) you've tried from your ccleaner.ini file which don't work?

     

    Yes. This is what I have in my INI file:

     

    ExcludeKey1=PATH|D:\|*.db

     

    ...and it doesn't work. I also tried setting the exclusions through the interface and that doesn't work.

  8. I am trying to exclude certain files from being cleaned, but it isn't working properly. I've added the drive and folder to the exclude window, set the file extension, but it still deletes the file.

     

    I have "Custom File and Folders" selected when cleaning. Any ideas why it seems to be ignoring my custom exclusions?

  9. CCleaner doesn't display all the cookies I have on my system. Only a fraction, actually. I could surf the web and not clean my system for a week, and only about 15 cookies will be displayed as an option to keep or delete. Why is this. I like that feature so I don't have to keep logging in to forums I visit regularly and stuff like that after I clean. Is this a bug? Should I report it in the bug area?

×
×
  • Create New...

Important Information

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