How to view log files in Windows Explorer preview pane

Have you ever had to look at alot of little log files and want to quickly glance at them? Well the easiest way to do this would be to use the Preview Pane in Windows 7 Explorer window.

To enable this you need to add the following registry key:

[code]Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\.log]
@="txtfile"
"Content Type"="text/plain"
"PerceivedType"="text"
[/code]

Save the above text in a text file and rename the extension to .reg. Then simply double click on it to apply it.

The result should look similar to this:

It can be applied to other extensions if need be. Just make the approprite changes to key above.

9 thoughts on “How to view log files in Windows Explorer preview pane”

  1. If you don’t have the priviledges to add it under HKEY_CLASSES_ROOT\.log
    you can create a key under HKEY_CURRENT_USER\Software\Classes\.log

    Reply

Leave a Reply to Jowe MCancel reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

QR Code Business Card