notepad defaults to cmd prompt

henryma

Member
Apr 11, 2008
44
0
0
I changed notepad a while ago to open into cmd prompt when trying to make batch files, and thus I accidentally made .txt files default into cmd prompt, but now when I try to change it back to Notepad it won't change. I click on the default programs part and i double click notepad and click ok, yet it still it opens straight into cmd prompt.

Is there any way to edit this in registry or something to make it open back to notepad?

I'm running Windows 7 Ultimate 64-bit
AMD Phenom II X4 B60 3.3GHz
8GB G-Skill DDR3-1333 Ram
Hitachi 2TB 5400 RPM
EVGA GTX 460 SE
GA-880GM-UD2H Socket AM3 880G mATX Motherboard
 

bruceb

Diamond Member
Aug 20, 2004
8,874
111
106
Maybe look under this registry key

HKEY_CURRENT_USER\Software\Microsoft\Notepad

Also maybe here

HKEY_CLASSES_ROOT\.txt\OpenWithList\notepad.exe]

Or maybe here
HKEY_CLASSES_ROOT\Applications\notepad.exe HKEY_CLASSES_ROOT\Applications\notepad.exe\shell HKEY_CLASSES_ROOT\Applications\notepad.exe\shell\edit HKEY_CLASSES_ROOT\Applications\notepad.exe\shell\edit\command
C:\WINDOWS\notepad.exe "%1"
 
Last edited: