Open file without extension with notepad

L

Larry

--Alt-Boundary-14983.2880281
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

I found .reg file in http://www.kellys-korner-xp.com/xp.htm under the
Tweaks section which is worded as follows:

"Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\*\shell]

[HKEY_CLASSES_ROOT\*\shell\open]
@="Open With Notepad"

[HKEY_CLASSES_ROOT\*\shell\open\command]
@="notepad.exe %1"

Somehow I couldn't get it to work in my winxp pro. Has anyone used
this tweak before?

Jimmy


--Alt-Boundary-14983.2880281
Content-type: text/html; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body

<?xml version="1.0" ?><html>
<head>
<title></title>
</head>
<body>
<div align="left"><font face="Arial"><span style="font-size:12pt">I found .reg file in http://www.kellys-korner-xp.com/xp.htm under the
Tweaks section which is worded as follows:</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:12pt">&quot;Windows Registry Editor Version 5.00</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:12pt">[HKEY_CLASSES_ROOT\*\shell]</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:12pt">[HKEY_CLASSES_ROOT\*\shell\open]</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:12pt">@=&quot;Open With Notepad&quot;</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:12pt">[HKEY_CLASSES_ROOT\*\shell\open\command]</span></font></div>
<div align="left"><font face="Arial"><span style="font-size:12pt">@=&quot;notepad.exe %1&quot;</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:12pt">Somehow I couldn't get it to work in my winxp pro. Has anyone used
this tweak before?</span></font></div>
<div align="left"><br/>
</div>
<div align="left"><font face="Arial"><span style="font-size:12pt">Jimmy</span></font></div>
<div align="left"></div>
</body>
</html>

--Alt-Boundary-14983.2880281--
 
K

Kelly

Hi Larry,

Which program are you working with and/or what are you trying to accomplish?
 
R

Ramesh [MVP]

Larry,

Kelly's patch which you've downloaded does not apply in your case. Adding notepad to HKEY_CLASSES_ROOT\*\SHELL will make notepad available to all filetypes which *HAVE* extensions.

To make notepad the default editor for all 'extensionless' files, try this:

Open Registry Editor and navigate to:
HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\
Create a subkey named "." [just a dot]

The full path will be:
[HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
In the right-pane, create a key named "Application" (string value) and set it's data to "Notepad".
Now, dbl-click a file with unnamed extension. It should open with Notepad.

The REG file is below:

====================

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
"Application"="Notepad"

=====================
This is a per-user setting. Do the same in HKEY_CLASSES_ROOT if you want to make it a per-computer setting.

--
Ramesh - Microsoft MVP
www.mvps.org/sramesh2k
----------------------------------------
Free Online Virus Scanners and Security Tests:
http://www.mvps.org/sramesh2k/Scanners.htm
----------------------------------------


I found .reg file in http://www.kellys-korner-xp.com/xp.htm under the Tweaks section which is worded as follows:


"Windows Registry Editor Version 5.00


[HKEY_CLASSES_ROOT\*\shell]


[HKEY_CLASSES_ROOT\*\shell\open]
@="Open With Notepad"


[HKEY_CLASSES_ROOT\*\shell\open\command]
@="notepad.exe %1"


Somehow I couldn't get it to work in my winxp pro. Has anyone used this tweak before?


Jimmy
 
L

Larry

Hi Kelly!

Which program are you working with and/or what are you trying to accomplish?

Sometimes files that have no extensions appear in my file manager.
When I click on them to open them, a box dialog pops up and states
that I have to select an application to open it. And I usually select
notepad to do the job, but unfortunately, the option "always open file
with this application" is greyed out.

That means that I got to go through the whole process of selecting
notepad again the next time I open any file without extensions.
Someone had referred to the tweak that I mentioned in my earlier post.
However, it didn't work for it.

BTW, are you the same Kelly who runs the fantastic website at
http://www.kellys-korner-xp.com/xp_tweaks.htm? If yes, I'd like to
thank you for some really wonderful tweaks.

Larry
 
K

Kelly

Hi Larry,

Try the edit Ramesh mentioned. If you prefer automated, I added it to the
same regfile on line 25 (right hand side): Re-download it.
http://www.kellys-korner-xp.com/xp_tweaks.htm

Let us know how it goes. In the meantime, that should straighten out the
rest of your issues, if not, we will be here. :blush:)

As per your latter mention, yup that is me and all day long too. You are
most welcome and thanks for the mention!
 
L

Larry

Kelly's patch which you've downloaded does not apply in your case. Adding notepad to HKEY_CLASSES_ROOT\*\SHELL will make notepad available to all filetypes which *HAVE* extensions.

To make notepad the default editor for all 'extensionless' files, try this:

Open Registry Editor and navigate to:
HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\
Create a subkey named "." [just a dot]

The full path will be:
[HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
In the right-pane, create a key named "Application" (string value) and set it's data to "Notepad".
Now, dbl-click a file with unnamed extension. It should open with Notepad.

The REG file is below:

====================

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
"Application"="Notepad"

=====================
This is a per-user setting. Do the same in HKEY_CLASSES_ROOT if you want to make it a per-computer setting.

Oops! My mistake. When I copied and pasted the .reg file of Kelly's
tweak I missed out a whole line. That line was:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
"Application"="Notepad"

This is exactly the entry that you suggested I use. Anyway, I got the
thing to work (ie. files without extensions will open up with notepad)
using Kelly's or your version but another unexpected problem cropped
up.

Now whenever I reboot windows, notepad opens up with a blank page at
startup.

No big deal but it's quite annoying and it's puzzling why that
happens. Is there a remedy?

Larry
 
L

Larry

Hi Kelly!

Try the edit Ramesh mentioned. If you prefer automated, I added it to the
same regfile on line 25 (right hand side): Re-download it.
http://www.kellys-korner-xp.com/xp_tweaks.htm

I got your post after I'd replied to Ramesh's. I didn't know you had
modified the .reg file and so I thought that I had made a mistake by
missing out a whole line while copying your original file. <big grin>

Anyway, the good news is that it now works but as I mentioned in my
reply to Ramesh, notepad now starts up blank with each reboot. I am
using Winxp pro SP1 if that's relevant info.
Let us know how it goes. In the meantime, that should straighten out the
rest of your issues, if not, we will be here. :blush:)

Many thanks. You guys are great!

Larry
 
R

Ramesh [MVP]

Larry,

See if this is your issue: http://support.microsoft.com/default.aspx?scid=kb;en-us;330132
If not, manage your startup applications using MSCONFIG: http://www.mvps.org/sramesh2k/Startup.htm. See if notepad or any junk entry is listed at startup.

--
Ramesh - Microsoft MVP
www.mvps.org/sramesh2k
----------------------------------------
Free Online Virus Scanners and Security Tests:
http://www.mvps.org/sramesh2k/Scanners.htm
----------------------------------------


Kelly's patch which you've downloaded does not apply in your case. Adding notepad to HKEY_CLASSES_ROOT\*\SHELL will make notepad available to all filetypes which *HAVE* extensions.

To make notepad the default editor for all 'extensionless' files, try this:

Open Registry Editor and navigate to:
HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\
Create a subkey named "." [just a dot]

The full path will be:
[HKEY CURRENT USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
In the right-pane, create a key named "Application" (string value) and set it's data to "Notepad".
Now, dbl-click a file with unnamed extension. It should open with Notepad.

The REG file is below:

====================

Windows Registry Editor Version 5.00

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
"Application"="Notepad"

=====================
This is a per-user setting. Do the same in HKEY_CLASSES_ROOT if you want to make it a per-computer setting.

Oops! My mistake. When I copied and pasted the .reg file of Kelly's
tweak I missed out a whole line. That line was:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.]
"Application"="Notepad"

This is exactly the entry that you suggested I use. Anyway, I got the
thing to work (ie. files without extensions will open up with notepad)
using Kelly's or your version but another unexpected problem cropped
up.

Now whenever I reboot windows, notepad opens up with a blank page at
startup.

No big deal but it's quite annoying and it's puzzling why that
happens. Is there a remedy?

Larry
 
L

Larry

Hi Ramesh!

See if this is your issue: http://support.microsoft.com/default.aspx?scid=kb;en-us;330132
If not, manage your startup applications using MSCONFIG: http://www.mvps.org/sramesh2k/Startup.htm. See if notepad or any junk entry is listed at startup.

Many thanks for the links.

However, the notepad problem in my case seems to be caused by another
reason. I have an application (installed on E drive of Disk2) which is
configured to be opened on windows startup. Windows itself is in C
drive on Disk2. Any, though the .reg entry is in the run section of
HKCU/run the application for some reason is not able to start and this
somehow triggers the notepad to start (blank) in its place.

Now, how do I know this is so? Well, the moment, I deleted the reg
entry from HKCU/run, the notepad does not appear anymore.
Alternatively, if I corrected the problem by putting the application's
path within quotes in the registry, then the application will start
nicely and the notepad does not appear too.

Hope I'm making some sense here.

I have posted under a separate heading, my problem with the
application that does not open on startup although it is listed in the
HKCU/.../run section.

Larry
 
L

Larry

Hi Ramesh!

However, the notepad problem in my case seems to be caused by another
reason. I have an application (installed on E drive of Disk2) which is
configured to be opened on windows startup. Windows itself is in C
drive on Disk2. Any, though the .reg entry is in the run section of
HKCU/run the application for some reason is not able to start and this
somehow triggers the notepad to start (blank) in its place.

Sorry, the C drive is on Disk1.

Larry
 
R

Ramesh [MVP]

Good attempt, Larry. All the Best for the other issue..

--
Ramesh - Microsoft MVP
www.mvps.org/sramesh2k
----------------------------------------
Free Online Virus Scanners and Security Tests:
http://www.mvps.org/sramesh2k/Scanners.htm
----------------------------------------


Hi Ramesh!

See if this is your issue: http://support.microsoft.com/default.aspx?scid=kb;en-us;330132
If not, manage your startup applications using MSCONFIG: http://www.mvps.org/sramesh2k/Startup.htm. See if notepad or any junk entry is listed at startup.

Many thanks for the links.

However, the notepad problem in my case seems to be caused by another
reason. I have an application (installed on E drive of Disk2) which is
configured to be opened on windows startup. Windows itself is in C
drive on Disk2. Any, though the .reg entry is in the run section of
HKCU/run the application for some reason is not able to start and this
somehow triggers the notepad to start (blank) in its place.

Now, how do I know this is so? Well, the moment, I deleted the reg
entry from HKCU/run, the notepad does not appear anymore.
Alternatively, if I corrected the problem by putting the application's
path within quotes in the registry, then the application will start
nicely and the notepad does not appear too.

Hope I'm making some sense here.

I have posted under a separate heading, my problem with the
application that does not open on startup although it is listed in the
HKCU/.../run section.

Larry
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top