I added some txt files to a document library and would like to edit them in notepad. However, I don't get this option. Is there anyway do to this?

I realize this question is similar to: Open txt file in Notepad from SharePoint, but I was hoping for a better solution.


As @Zork mentioned, there is no easy way to accomplish that. Having said that, if you have some development skills you could create a custom COM/ActiveX component like described here:


Unfortunately this solution requires a client-side deployment.

  • That solution also would not work for notepad specifically due to the way notepad is built. It is certainly possible to use this type of solution, but it would definitely have to be something custom built for notepad. +1 for the cool link and associated code though! – Zork Apr 2 '12 at 19:55
  • Actually, it should work just fine by adding code to run notepad as a process and pass in the link to the text file. Did you try this? – Sig Weber Apr 2 '12 at 20:25
  • thats exactly what im saying, you have to add specific code for notepad as opposed to the method in the link. Just trying to clarify it for anyone who would want to use that but not a clear understanding of what the code does – Zork Apr 2 '12 at 21:22
  • Sorry if I confused you. Looking through the code from the link I mentioned it actually contains everything required to open a text file with notepad.exe given the file extension .txt is associated with Windows Notepad on the client computer. All you need to do on the server is using txt instead of pdf in docicons.xml and deploy the component on your client computer. – Sig Weber Apr 2 '12 at 21:37
  • huh guess im flat out wrong then! thanks for checking – Zork Apr 3 '12 at 12:40

You could have SharePoint as a network drive and open the document as though it were a file on your system.

Unfortunately there's no good way of opening it directly to notepad from SharePoint.

  • Were you able to solve the "open with Notepad" issue by adding the document library as a network location? When I add a SharePoint site to my network location I still have the same issue: can't open non-MS Office documents. – thornomad May 29 '14 at 15:42

I had this issue but noted that files with .log extensions opened up with notepad. A simple change of the file extension from .txt to .log in explorer view in the document library "fixed" the issue. This is not really scaleable but is annoying in that the behaviour is not consistent between non Office apps.

I have looked at trying to create a simple workflow to change the extensions but no luck as designer only seems to allow you to update properties of the document. I'll keep trying.

  • I don't think that changing the file extension is the best way to handle this. If anything it would just cause end user confusion. – RJ Cuthbertson Oct 2 '12 at 17:42

It works for both txt and log files in SharePoint 2010 with Windows 7 clients. Must have been fixed at some point.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.