Open Any Unknown File with Notepad

************************************************************************
DISCLAIMER: The following contains registry edits. If done improperly
can cause strange behaviour, and at worst, could even entirely corrupt
your Windows Installation, requiring you to reinstall Windows.
I cannot be held for any damage you may cause to your system as a
result of taking any action suggested in the following article.
************************************************************************

Target OS: Windows XP

Introduction:
This registry edit can be very useful for Programmers and those who are often irritated by right clicking a file and selecting Open With/Notepad.
This edit makes any unknown file type to automatically open with notepad.
Just double click "default_notepad_opener.reg" and press OK if any dialog box pops up.
So download the file here: [attachment=956:default_...d_opener.zip]
OR
You can copy the code below into your favourite text editor and save it with .reg extension and apply. Before applying .reg extension go to “Tools” > “Folder Options…” > “View” tab and uncheck “Hide extensions for known file types”.


Windows Registry Editor Version 5.00

CODE
[HKEY_CLASSES_ROOT\Unknown\shell]
@="notepad"

[HKEY_CLASSES_ROOT\Unknown\shell\notepad]
@="Open with Notepad"

[HKEY_CLASSES_ROOT\Unknown\shell\notepad\command]
@="C:\\WINDOWS\\NOTEPAD.EXE %1"



NOTE: You can make any specfic file to always open with notepad, for eg for .php files to open with notepad, you right click the file, select properties and change "Open's with" application with notepad. But the registry edit described above is better.

For Reviewers: You can tell me to do as written in the above NOTE. But it will create registry settings for each file type. So, when I worked with .php3 files it will create registry settings for that and now if I set for .php again another registry. You see it makes us feel cool when one registry does the thing (for .css, .js, etc).
If some specific software’s have registered it (like Browser, HTML Editors) then those settings will be applicable.


Important:
This registry edit has only been tested on Windows Xp Professional edition.

From Author:
I think you've all done this edit succefully.

If you have any doubts then mail me:
dnitishkumar@gmail.com

Better you post your doubts, suggestions, reviews here.

 

 

 


Reply