2

I am trying to customize the way image folders appear in Win7 explorer, but I can't seem to get it under control.

Is there a way to force it to always pick the first image in the folder as the preview image? Explorer has perfectly fine natural sort order. I don't understand why it messes it up by picking semi-random images.

3 Answers 3

4

windows will either pick a photo, or used the photo named folder.jpg.

If you want the first folder to be used, you'd have to copy the first photo to a file named folder.jpg.

I don't know if there is any program or extended feature where you can change this behavior. I'd be interested in knowing too

UPDATE:

I've had this old script for years now, which i use to search and replace strings in directories. You can prob easily modify it to find the first jpg and copy it to folder. There's probably a way better method of doing this, but hopefully this will jump start ya.

create_folderdotjpg.vbs

Dim MyFile
MyFiles = GetFileArray(".")

For Each MyFile In MyFiles
    ' psuedo logic here
    ' get a list of all files in sub folder
    ' find the first jpg, and copy the file to folder.jpg
Next

MsgBox "Done..."

function GetFileArray(ByVal vPath)
    'Get our objects...
    Set FSO = CreateObject("Scripting.FileSystemObject")
    Set Folder = FSO.Getfolder(vPath)
    Set Files = Folder.SubFolders

    'Resize the local array
    'Arrays are 0 based but Files collection is 1 based.
    if Files.count = 0 then
        GetFileArray = array()
        Exit Function
    Else
        Index = 0
        Redim FileList(Files.Count-1)
        For Each File In Files
            set FileList(Index) = File
            Index = Index + 1
        Next
        GetFileArray = FileList
    End If

    'Always good practice to explicitly release objects...
    Set FSO = Nothing
    Set Folder = Nothing
    Set Files = Nothing

End function
4
  • Hmmm... well that's something. I'm gonna wait a while in case a lazier solution gets posted, but failing that I'm gonna have to write a script to take the first image and copy it as folder.jpg/png/etc. Great info, thanks.
    – Alex K
    Mar 26, 2010 at 23:18
  • @Ryo Rico: do you know by any chance why why the following behavioiur happens? If a folder has several subfolders and each subfolder has folder.jpg in it, the top most folder sometimes has a collage of folder.jpg it contains and sometimes it gets the folder-inside-folder icon (as if no folder.jpg was found).
    – Alex K
    Mar 28, 2010 at 0:00
  • @alex k no, i don't know for sure why that would happen.
    – Roy Rico
    Mar 29, 2010 at 16:06
  • THANKS!!! For those of your wanting to batch process images, look into AntRenamer. I was able to pull in all files from all folders and subfolders, select the ones I wanted to copy and rename folder.jpg and then windows showed those as the folder image. Huge time saver!! Thanks again Apr 22, 2018 at 10:29
2

This step has to be applied manually on each folder but works for me.

Steps:

  1. Right-click on a Folder and select Properties

  2. In the Properties windows select the Customise tab

  3. Under "Folder pictures" click "Choose File..." and select an image

  4. Under "Folder icons" click "Change Icon...", click "Restore Defaults", then Apply and OK.

That's it. It should work.

Source: http://www.sevenforums.com/customization/17237-how-apply-image-folder.html

1

You can manually change the preview picture here's how

Right Click > Properties > Customize

alt text

2
  • Thanks for the suggestion, but when you've got a bazillion images organized in a bajillion folders, manual way just doesn't cut it. :)
    – Alex K
    Mar 26, 2010 at 23:12
  • yea i guess so i'll check out if there are any more options per se
    – rzlines
    Mar 26, 2010 at 23:51

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .