1. You are viewing our forum as a guest. For full access please Register. WindowsBBS.com is completely free, paid for by advertisers and donations.

Preload a folder into memory in the background at startup?

Discussion in 'Windows 7' started by nrz, 2014/03/28.

  1. 2014/03/28
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    Hi, I'm new to the forums here. I've posted this question elsewhere but have received no responses. Can anyone here help me out?

    I'm wondering if it's possible to preload all the .ico's in my my music folder in the background when starting up Windows. I was thinking maybe a .bat file loaded into my startup file, but I don't really know much about .bat files, how to write one, or if that's really a solution. If possible, I'd like for the folder not to actually open.

    I tried putting a shortcut to my music folder in the Startup directory, but this had two problems: 1) the folder opened, of course and 2) it only loaded the icons for the visible folders (meaning it wouldn't scroll down to load the rest).

    I can manually open the folder, scroll down slowly while I wait for each folder to load its .ico file and then close and re-open the folder and it loads blazingly fast (because it's already in memory by that point). This is how I want it to be every time I open it.

    All of my albums each have their own folder in one music folder (no sub-folders broken down by artists), which is the way I want it. Every folder/album has it's own Folder.ico (note: not .jpg) file associated with it that displays the album art instead of the generic Windows folder icon. I don't want to use the Folder.jpg's because Windows Vista/7/8 skews the artwork.

    Is what I'm wanting possible? Thanks!

    [By the way, I'm wanting this for three computers: 1 running Windows Vista Ultimate (32-bit), 1 running Windows 7 Pro (64-bit), and one running Windows 8.1 Pro (64-bit).]
     
    nrz,
    #1
  2. 2014/03/29
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338

  3. to hide this advert.

  4. 2014/03/29
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    SpywareDr:

    Thank you for your reply. I got really excited at first because I had never heard of the icon cache before (thumbs.db for the .jpg's, yes, but not the icon cache). Unfortunately, even with setting the "Max Cached Icons" string to 800000 (KB), I observed no difference in performance loading the .ico's.

    Any other ideas?
     
    nrz,
    #3
  5. 2014/03/29
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338
  6. 2014/03/29
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    I tested this on the Media Center computer:
    PC Alchemy Avideus NXE, Windows Vista Ultimate 32-bit, Intel Core 2 Duo E8400, 4GB RAM @ 800MHz, NVIDIA GeForce 8600 GTS, 80GB @ 7200 RPM OS drive, 1.5TB @ 7200 RPM RAID 5 (750GB x 3) storage drive (the music is on this drive)

    For future reference, my home computer:
    Apple iMac (Late 2012), Windows 8.1 Pro 64-bit, Intel Core i7-3770, 24GB RAM @ 1600Mhz, NVIDIA GeForce GTX 680MX, 768GB SSD (OS & Storage)

    And my work computer:
    Polywell Z6800x, Windows 7 Pro 64-bit, Intel Core i7-2600K, 16GB RAM @ 1333GHz, AMD FirePro V4900, 128GB SSD OS drive, 500GB @ 7200 RPM storage drive (the music is on this drive).
     
    nrz,
    #5
  7. 2014/03/29
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338

    800,000! :eek: I believe the maximum is 8,192.

    Once you get that changed, delete the IconCache.db (hidden) file in "C:\Users\your_username\AppData\Local" (hidden folders) and reboot. Then give Windows a while to rebuild the icon cache.



    That "work computer" should be fast enough. The problem may be that it's having to wait for that old, slow spinner of a hard drive.
     
  8. 2014/03/29
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    I currently have 1,860 albums in my music library, each with it's own album art icon. At about 425KB each, I end up with almost 800,000KB worth of icons. Even on my fast SSD on my home computer, it takes a while to load them initially. Once it's in memory, though, it's super fast for all of the computers. That's why I was hoping to find a way of having Windows load it into memory automatically at startup. I have plenty of memory on at least my home and work computers so I'm not worried about an extra GB being taken up there (which is essentially how much more my explorer.exe process uses once the files have been loaded).

    Anyway, I'll try your suggestion of setting it to 8,192 and deleting the IconCache.db file and will report back. Thanks again for working with me on this.
     
    nrz,
    #7
  9. 2014/03/29
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    I deleted the IconCache.db file which, interestingly, was 14.3MB. After I changed the registry value to 8,192, the file is 21.7MB. I thought I was setting the limit to 8MB?

    Regardless, even after loading the folder completely and restarting a couple of times (reloading each time), it still did not seem to help much, if at all. Nothing is as fast as when it is in memory.
     
    nrz,
    #8
  10. 2014/03/30
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338
  11. 2014/03/30
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    Running CCleaner will not be an option for me. I don't want to risk messing up my registry running that. Besides, my issue happens on clean installs as well. It always happens because it just takes a long time to load nearly a gig of icons. That's why I want to have a process that automatically loads them into my fast memory in the background at startup.
     
    nrz,
    #10
  12. 2014/03/30
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338
    No, I didn't mean to run the "registry cleaner" part of CCleaner. The default settings are safe and will delete all of the Windows thumbcache*.db files for you.
     
  13. 2014/03/30
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    Won't a clean install delete all the thumbcache files for me as well?

    I just did a clean install on my work computer last week. It's the same as when I set up all the computers originally and the same as they all are now.
     
    nrz,
    #12
  14. 2014/03/30
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338
    I'm fresh out of ideas then. I have roughly 500-600 albums here and don't see any delay.

    Hopefully someone else with another idea ot two will be along soon ...
     
  15. 2014/03/30
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    SpywareDr:

    I appreciate you taking the time to try to help me. Yes, hopefully someone with (.bat file programming experience???) will come along!

    Just out of curiosity, are you using the default .jpg-based folder icons or have you customized yours with .ico's as I have? The .jpg's for me load instantly as well, but don't look good. With the .ico's, I have something that looks perfect and uniform across XP-8.1. Originally, if Vista/7/8 had kept XP's head-on style I probably wouldn't have tried to find this work-around using .ico's.
     
    nrz,
    #14
  16. 2014/03/30
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338
  17. 2014/03/30
    nrz

    nrz Inactive Thread Starter

    Joined:
    2014/03/28
    Messages:
    28
    Likes Received:
    0
    Heh heh, I make the shared directory read-only so my wife can't accidentally mess around with anything. ; )
     
    nrz,
    #16
  18. 2014/03/30
    SpywareDr

    SpywareDr SuperGeek WindowsBBS Team Member

    Joined:
    2005/12/31
    Messages:
    3,752
    Likes Received:
    338

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.