Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 2 down vote accepted

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


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.


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

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
        Index = 0
        Redim FileList(Files.Count-1)
        For Each File In Files
            set FileList(Index) = File
            Index = Index + 1
        GetFileArray = FileList
    End If

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

End function
share|improve this answer
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 '10 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 '10 at 0:00
@alex k no, i don't know for sure why that would happen. – Roy Rico Mar 29 '10 at 16:06

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


  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.


share|improve this answer

You can manually change the preview picture here's how

Right Click > Properties > Customize

alt text

share|improve this answer
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 '10 at 23:12
yea i guess so i'll check out if there are any more options per se – rzlines Mar 26 '10 at 23:51

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.