Answered by:
Opening TXT-File not in Browser

Question
-
Hi together,
i want to ask you, if anybody knwos how i can make TXT-files excecutable from SharePoint directly in Notepad?
When i want to open a TXT-file from a document library, it only opens in the browser.
But after copying the link of this file, opening Notepad, saying open file and paste this link, the file opens in Notepad and after saving it will be saved directly back to SharePoint.
From now on, every time i click on a TXT-file in document libraries, they will be opened automatically in Notepad.
After restarting the computer, the problem is the same as before: TXT-files first will be opened in the browser.
The problem is, that many people have open TXT-Files from SharePoint and they must be editable. Every time a work-around like i have described is too busy.
Thanks for your help!
Best Regards
DennisWednesday, July 27, 2016 12:04 PM
Answers
-
It is up to the browser to decide that. Most (all?) browsers will display TXT files in the browser itself, rather than open an application to do so. This likely has a long history behind it, given this behavior is well known back into the late 80s/early 90s. This isn't really a SharePoint question, per-se, as you're looking to modify browser behavior. That said, take a look at this:
http://stackoverflow.com/questions/17533835/how-can-i-prevent-ie-from-opening-supported-text-or-image-file-types-directly-in
It is likely more complicated than it is worth to implement.
Trevor Seward
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
- Proposed as answer by Andy JY Thursday, August 4, 2016 11:25 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Tuesday, August 9, 2016 2:15 AM
Tuesday, August 2, 2016 5:52 AM
All replies
-
Hi,
According to your description, my understanding is that you want to open ‘.txt’ file with notepad.
I think the file association should be defined in the browser:
IE:
- Internet Options > Programs tab > Click the 'Set programs' button.
- Click the 'Associate file type or protocol with a program'
- Select the file type extension and associate it with the application you it to be open with.Best Regards,
Andy Wu
TechNet Community Support
Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact tnmff@microsoft.com.Thursday, July 28, 2016 9:32 AM -
Change lib settings: for opening doc in browser:
Lib settings> Advance settings>
Mahi
Please Mark as answer if found useful :)
Thursday, July 28, 2016 9:52 AM -
Hi,
thanks for your replies. According to the reply of Andy Wu:
The associaten for txt-Files is set to notpead already. But this does not solve the problem.According to Mahi:
Lib settings were setted to all three of them. But this only changes the opening procedure for Office-Documents - not for TXT-Files.Monday, August 1, 2016 8:17 AM -
This isn't the best solution for most end users but whenever I need to edit a non-office file, (.txt, .html, .css) I just use the Open in Explorer feature first
Monday, August 1, 2016 12:09 PM -
But is there no other solution, how i can map .txt-files directly to notepad? It is really awkward, opening these files first in explorer.Tuesday, August 2, 2016 5:44 AM
-
It is up to the browser to decide that. Most (all?) browsers will display TXT files in the browser itself, rather than open an application to do so. This likely has a long history behind it, given this behavior is well known back into the late 80s/early 90s. This isn't really a SharePoint question, per-se, as you're looking to modify browser behavior. That said, take a look at this:
http://stackoverflow.com/questions/17533835/how-can-i-prevent-ie-from-opening-supported-text-or-image-file-types-directly-in
It is likely more complicated than it is worth to implement.
Trevor Seward
This post is my own opinion and does not necessarily reflect the opinion or view of Microsoft, its employees, or other MVPs.
- Proposed as answer by Andy JY Thursday, August 4, 2016 11:25 AM
- Marked as answer by Wendy DZMicrosoft contingent staff Tuesday, August 9, 2016 2:15 AM
Tuesday, August 2, 2016 5:52 AM