SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. Join them; it only takes a minute:

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

We are using WSS 3.0. We have a webpart that shows a list of documents in a document library.

If we click on a MS Word file with a doc extension, it opens in MS Word.

However, if we click on a text file with a txt extension, it opens in view mode in the browser.

Is there any way that we can get the txt file to open in notepad?

share|improve this question
up vote 7 down vote accepted

I don't think you can do that, unless you do some local registry hacks on each machine that opens files with the content tyep text/plain in notepad instead of in the browser.

The reason that you can open Office documents is that SharePoint uses ActiveX to invoke the office application with its ProgId. Notepad does not have any COM ProgId.

You could make it so that .txt documents are opened in Word though.

share|improve this answer
Sigh... this is not solved from SPS 2003, huh? – Anders Rask Feb 8 '10 at 10:01
See my answer below, seems to have been fixed in Office 2013. – Alexey Krasheninnikov Oct 4 '14 at 7:19

In SharePoint 2010 there is an Edit-Control-Block menu option to "Edit Document" that opens txt files in Notepad (and log for that matter). Tested on Team Site Shared Documents and Windows 7 x64 / Windows Server 2012 clients. At least with Office 2013 it works as shown below.

proof image

share|improve this answer

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.