Nov 22, 2009

Open Any Unknown File Type With Notepad - Make Notepad as default file opener

free web hosting
Open Discussion > MODERATED AREA > Computers > Programming Languages > Others

Open Any Unknown File Type With Notepad - Make Notepad as default file opener

nitish
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”.


CODE
Windows Registry Editor Version 5.00

[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.

 

 

 


Comment/Reply (w/o sign-up)

iGuest-Spsp1981
This tweak is buggy
Open Any Unknown File Type With Notepad

At least under WinXP this tweak causes "Open with..." and "Choose program..." context menu items to open the file in notepad instead of the corresponding dialog box, After ages I'm still looking for a solution to this, but still not luck.

Good luck!


-reply by Spsp1981

Comment/Reply (w/o sign-up)

iGuest-Spsp1981
Semi-hidden bug
Open Any Unknown File Type With Notepad

I use this method since a long time now and it has a little problem. Using this option completely disables the "Open with..." feature. Every time you click on "Open with..." and/or "Choose program...", notepad will open up not allowing you to choose other options for opening the file. Currently I'm looking for some way of having both options but still not lucky. Just wanted you to know.

Greetings

-reply by Spsp1981

Comment/Reply (w/o sign-up)

BCD
This registry edit works fine for me. So, I can say, its working perfect on Windows XP SP3. I also get the correct "Open With" dialog box when I "Open" for unknown file types.

@Spsp1981- It seems the edit is not working in some older versions (SP2 or lower). You can check this article or thee solution: http://windowsxp.mvps.org/openas.htm
Just apply the patch after applying this one. Hopefully it should work.

Comment/Reply (w/o sign-up)

Baniboy
QUOTE (BCD @ Jun 19 2009, 07:58 PM) *
This registry edit works fine for me. So, I can say, its working perfect on Windows XP SP3. I also get the correct "Open With" dialog box when I "Open" for unknown file types.

@Spsp1981- It seems the edit is not working in some older versions (SP2 or lower). You can check this article or thee solution: http://windowsxp.mvps.org/openas.htm
Just apply the patch after applying this one. Hopefully it should work.


The guy asked for help 9th september 08? I don't think he's following this topic anymore...

Comment/Reply (w/o sign-up)

BCD
I don't know how this guest account works, but I suppose he would have entered his email while posting the replies.

Anyway the solution would not only help him, but also to others who might visit this thread through search engines in future.

Comment/Reply (w/o sign-up)

(G)Anne
Notepad Text .. and .. Error 501 repairs needed please?
Open Any Unknown File Type With Notepad

Hi,

I'm running IE6 - (newly re-installed HDD)/ OE 6 - SP3, Windows XP Home Edition.

I have 2 irritating problems which I can't resolve, even after several attempts of finding help via the Internet.

1 ... A txt file opened in Notepad gives me anything but the English text I would prefer to see .. Looks to be a lot of Chinese text, how do I resolve this issue please?

2 ... Newly created mail in Outlook Express 6 won't let me *Format/Font* (change the Font to the one I require), error message reads ... An error has occurred in this dialogue, Error 501 .. Permission denied ..  again, searched for the resolve, but nothing found.

I'm at a loss as to what to try next, so please can you advise me?

Many thanks,

Anne

-reply by Anne

Comment/Reply (w/o sign-up)

akashi
I prefer drag the file into notepad than editing my registry. not all ppl know about this registry things and how it important is.

About error in notepad character encoding, maybe you don't have the proper character encoder. you still can try to change the character code to ANSI or UTF8 or unicode when opening that file.

Comment/Reply (w/o sign-up)



Got an Opinion! Express your Views! (no registration):-
Add your Reply/ Opinion/ Views/ Comments/ Suggestion/ Questions/ Queries etc.
Posts with decent grammar & English will be accepted and please refrain from profanities.
For asking a Question, We recommend you to sign-up (for free) so that you can track the topic easily.

Nature of your Post*: Opinion/ Reply/ Comments
Question/Query
Feedback to us.
       
Name   Email
Title/Question*

This textarea will convert to Rich-Text automatically (IE, Firefox, Chrome)

Similar Topics

Keywords : open, unknown, file, type, notepad, make, notepad, default, file, opener

  1. Copy A File And Rename It With Increment If Exist
    in VBScript (10)
  2. Search For Video Files And Display Them
    Using a batch file in windows (0)
    In windows you need to be able to see the file's extension so you can rename a .txt file to .bat
    This batch code I wrote searches your C:\ drive for video files and drops the results into a file.
    That file is then processed into links on a web-page. The web-page is then opened for you to view.
    Click the links to view the file, right click -> save as to save to another place on your computer.
    I use it a lot after browsing videos on the web. It's fun to see what videos end up cached (left
    on the computer from browsing) Insert this into a file named vid-search.txt....
  3. Timer Command In Dos
    batch file help (6)
    I wish to execute a command at regular intervals .....precisely every half an hour....Is there any
    Dos command which can do it I havent found any so far...and i've heard there are no timer
    commands in DOS. So how should i go about it...i want the batch file to be executed at regular
    intervals....any external process or application that will invoke it?????....
  4. Autoplay.inf And .bat File Question
    can you check my code and information? (2)
    Okay, so here's the situation. For one of my school projects I have decided to do a simple
    cartoon animation. Because of the colour loss that you get when saving in .gif format, I have
    decided to save it as a .wmv file. However our school does not have a media player installed so I
    have decided to hand the project file (.mswmm) in instead and provide instructions on how to play
    the movie from there. Therefore when the cd is inserted I need two files to open (movie.mswmm AND
    instructions.txt). I have googled about autoplay and I have found out that you can only get ....

    1. Looking for open, unknown, file, type, notepad, make, notepad, default, file, opener

Searching Video's for open, unknown, file, type, notepad, make, notepad, default, file, opener
See Also,
advertisement


Open Any Unknown File Type With Notepad - Make Notepad as default file opener

Affordable Web Hosting, Low cost Web Hosting - ComputingHost.com