Add to list of extensions Outlook knows how to preview

12

2

We have several processes that email logs or other text files to us. When they have the extension .txt, Outlook knows how to show the preview within its main window. When the file has an extension such as .log, then Outlook will only offer to open it in an external application, even though the file is plain text.

How can I add .log to the list of extensions that Outlook will preview within its main window?

techturtle

Posted 2014-02-04T19:37:20.817

Reputation: 8 059

Have you assigned a program to the .log extension? – Ramhound – 2014-02-04T19:51:21.747

Duplicate of this?

– shinjijai – 2014-02-04T19:52:48.567

@Ramhound Yes. On my machine, the default viewer for .log is Notepad++. – techturtle – 2014-02-04T20:38:39.183

@shinjijai It is basically the same question, but nothing in that one seems to apply for me. My Outlook already opens CSV files, despite not appearing to have any of the registry keys they mention. I couldn't make heads or tails of what to do with those answers. – techturtle – 2014-02-04T22:16:58.253

Answers

14

In Windows Explorer right-click any .log file and select "Open With..." -> Choose Default Program. Select Windows Notepad there (not Notepad++) and make sure that you have the "default" check set. Restart Outlook. Not it has to show you .log files.

Update:

If not, check HKEY_CLASSES_ROOT\.log registry key's (Default) value. It has to be "txtfile" (without quotes). The registry change will take effect the next time you log in.

thims

Posted 2014-02-04T19:37:20.817

Reputation: 8 081

1Sigh. I now have Office 2016 on Windows 10 and this no longer works. No idea if it's the Office or Windows version that broke it, but all of these options were already set properly and changing/resetting them did nothing. – techturtle – 2016-11-07T16:33:01.403

Is there a way to preview files in other programs, namely Excel? – crazybilly – 2017-09-01T13:29:01.363

1Tried this and it didn't work. Still gives the error "This file cannot be previewed because there is no previewer installed for it." – techturtle – 2014-02-06T16:56:17.477

1Ok, that's weird. Please look at the HKEY_CLASSES_ROOT.log registry key's (Default) value, what is it? It has to be "txtfile" (without quotes). – thims – 2014-02-06T17:25:04.317

2THAT fixed it! It had something in there to do with Notepad++, but once I changed it to txtfile it started working. The default program is still Notepad++, but now it works in Outlook! I suggest you amend your answer with this data and I can accept it. – techturtle – 2014-02-06T17:52:12.307

I just updated the original answer. – thims – 2014-02-06T18:04:10.043