July 5, 2010

'Open in Notepad' for Unknown File Format in Windows

Sometimes, if you try to open a file with unknown file format in window, it will ask you to choose the program that you want to use to open that file. Most likely, we will use Notepad to open this files, that’s why it would be better if we set Notepad as a standard application to open this files.
It’s rather easy..

1. First, open Registry Editor, Start > Run > and then type:
regedit
2. Change your directory to HKEY_LOCAL_MACHINE | SOFTWARE | Classes | Unknown | Shell

3. Right Click in the Window on the left and choose New > Key, make a new key named ‘Open in Notepad

4. Then change your directory to your newly created key ‘Open in Notepad’ and double click the ‘Default’ entry to edit its value. In Value Data, type:
Open in Notepad
5. Right click the ‘Open in Notepad’ ket on the left window and select New > Key, make another new key named ‘command

6. Change your directory to ‘command’ key, and double click the ‘Default’ entry to edit its value. In Value Data, type:
Notepad.exe %1
7. That’s it, close your registry editor and restart your PC.

Now if you want to open an unknown file format using Notepad, all you need to do is right click on it and select ‘Open in Notepad’.

No comments:

Post a Comment