Enable Previews for new file extensions

Posted: February 8, 2013 in Solved, Windows General
Tags: , , , ,

In Windows Explorer the preview pane is something I normally turn off to give me more screen space. There are times though when it can be really handy. For example when browsing through a large number of text files or images rather than opening each one individually.

preview1

So what do you do when you have an unusual file extension that doesn’t work with the preview pane?

A program I use creates a queue of files with an extension of “.cnm”. They are plain text files, but when you try to see them in the preview pane, you just get the “No Preview Available” message. This has actually bugged me for YEARS but for some reason I just kept finding other ways to deal with it.

So I had a moment today where I had hundreds of these files I want to flick through and I finally decided to figure this out once and for all.

SOLUTION

The first thing is to get it associated with a program that you know works with preview for the type of file this is. In this case we want Windows to consider a CNM file the same as a text file, so I’m going to set it up the same as a TXT extension

1. Open the file. Because Windows doesn’t recognise what type of file it is, it will ask what you want to open it with. Choose “Select a program from a list of installed programs”

Preview1a

2. Select Notepad (or whichever program is appropriate), and leave the “Always use the selected program…” box ticked

Preview1bwin8.open

3. Open REGEDIT and browse to “Computer\HKEY_CLASSES_ROOT\[extension]”

(steps updated from suggestion by “Guest”)

reg-ext

4. On the right-hand pane, right-click and select new string value

new-string

5. Name the new key “PerceivedType” and set the value to “text”

perceivedtype

6. Now go and check your file and the preview pane should now work to display the contents

preview7

Comments
  1. Marjorie Roswell says:

    Thank you!

  2. Guest says:

    It’s much easier than that – just add string value to the new extension PerceivedType and set it to ‘text’. Done.

  3. Al says:

    Thanks! Very helpful when needing to open a file with one type of program, but preview it with another (like notepad to examine XML header info in notepad prior to opening with a default program).

  4. Rob says:

    You hero. I’ve been fighting this problem with .bad files dropped by our SMTP server. I knew it would be some kind of tweak to the extension handler and this works perfectly. This is going to make life a lot easier.

  5. Gordon says:

    Thank you soooo much! Used on Windows 10.

  6. eris discord says:

    also make sure in
    folder options
    –view
    —-always view icons never thumbnails
    is unchecked

  7. trophyjoe says:

    Worded like a champ and easy too! Thanks from the bottom of my feet!

  8. trophyjoe says:

    Meant to say “Worked like a champ…”, but come to think of it, the wording was pretty good.

  9. MATT VINSON says:

    Awesome. Can I display a .png rather than show text?

    • Scott says:

      .png is usually associated by default to display in preview. It uses “PerceivedType=image”.
      If that doesn’t work then check you have an application installed to display png files

  10. Yves Trottier says:

    Actually, it can be even simpler than what’s presented above:
    Just by using a simple .reg file, one can import the PerceivedType key into the registry in the right place in just a few clicks. Using this as a reference:

    Windows Registry Editor Version 5.00

    [HKEY_CLASSES_ROOT\.ext]
    “PerceivedType”=”text”

    Saving it into a .reg file, and changing the .ext extension to the one you want to add, you simply need to double click on the file, agree to update the registry, and VOILA. It’s done.

  11. Amit P. Kudva says:

    Hi Scott,
    I have installed Polaris Office (PO) in place of Microsoft Office (MO) and want to view all office files on the preview pane. *.doc, *.ppt, *.xls,*.docx, *.pptx, *.xlsx, etc,…

    Can you please guide me what I have to out preview the files.
    Unlike MO, for PO I can see only one option when for “Open with – Default Program”, i.e.Polaris Office. I don’t see Word, Excel, Powerpoint options separately.

    Since I had installed Open Office earlier, the string values in Regedit for .docx (example) is

    Default = OpenOffice.Docx
    PerceivedType = document

    What should I change it to to get the preview pane working?

    • Scott says:

      I don’t know Polaris Office, so that might depend on PO having a preview filter available to do this.
      The best approach might be to right-click a .doc file, “Open with”, “choose default program”. Select the Polaris Office exe and the “always open with” option. That will change the Default key, and if there is a preview filter available it might work.
      If it works, then repeat for the other doc types, or you could probably just copy the reg key for the default that is set.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s