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:

Windows Registry Editor Version 5.00

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

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.

  1. Hi Ivan,

    Great tip, I use it now all the time…

  2. Thank you Ivan, it also works in Windows 8

  3. This is super helpful!!! Using it in Windows 10.

Leave a Reply

QR Code Business Card
%d bloggers like this: