General discussion

Locked

notepad stuck on one file

By gary.l.smith ·
When I double click on a .txt file (any .txt file), NotePad opens a file named Program (no extension). Program contains text produced by an Intuit product install. If I rename Program, Windows doesn't boot the same way and seems to boot incorrectly. I don't think this effect has anything to do with an Intuit product. The effect began after I tried unsucessfully to install MS Access. Does it mean that my registry is so screwed up that I have to reinstall Windows 98? Or -- how does one fix such a problem in the registry short of reinstalling Windows? Be specific.

This conversation is currently closed to new comments.

12 total posts (Page 1 of 2)   01 | 02   Next
| Thread display: Collapse - | Expand +

All Comments

Collapse -

notepad stuck on one file

by Ruler In reply to notepad stuck on one file

One of the things that you've probably already looked at is the HKEY_CLASSES_ROOT\txtfile\shell\open\command key in the registry. This contains the command to run when you double-click on a .txt file. Check to make sure it says "c:\windows\notepad.exe %1" If the %1 isn't there, that's your problem since MS designed file passing in the same manner as it was handled in DOS batch files; first argument is %1, second is %2, etc.

If this doesn't work, you can create a shortcut to Notepad.exe inyour \windows\SendTo folder so that you can open text files by selecting Send To->Notepad. (This will also allow you to open any file in notepad by doing it this way.)

Collapse -

notepad stuck on one file

by gary.l.smith In reply to notepad stuck on one file

My registry entry is correct according to answer #1. Since my posting I have observed that not every .txt file opens incorrectly, but all that I tried until yesterday did. Now I have examples that open correctly and examples that don't. The shortcut solution is a possible workaround, but doesn't do what Windows is supposed to do. Thanks for the try.

Collapse -

notepad stuck on one file

by tech In reply to notepad stuck on one file

Check your file types.
start Windows Explorer and click on view.
click options and then File Type tab.
Double click text document look under actions.
There should be two entries called:
open
Print
possibly others

if there is one called program or open program remove it.

if that dosen't work try
looking for a entry called program and remove it.

Collapse -

notepad stuck on one file

by gary.l.smith In reply to notepad stuck on one file

There are no entries in the file type tab such as those suggested .

Collapse -

notepad stuck on one file

by Ruler In reply to notepad stuck on one file

Well, getting windows to do what it's supposed to is really outside my qualifications. (Obviously outside of the microsoft programmer's abilities as well...)

You didn't mention that it didn't screw up in the same way every time originally; try to associate text files with some other application, reboot, then restore the association to notepad again. To do this, click on View when in explorer, Options. Click on the File Types tab at the top and scroll down until you see Text Document (you can hit T to go to the top of the T's) in the list. Click on it, then on Edit. One of the actions should be in bold-face; double-click on it, make a note of what is displayed in the Application used box. (Probably simply c:\windows\notepad.exe) Change this to another text editor. (Word-pad would be sufficient; you're just trying to get windows to re-init the association with the file in the hopes that it will fix the problem.) If this doesn't fix it, respond here again and I'll e-mail you a clean notepad.exe file; an application may have over-written it with another version.

Collapse -

notepad stuck on one file

by Ruler In reply to notepad stuck on one file

One thing I forgot; you'll need to change the association back to notepad after you reboot. To do this, go into the Text Document action list as before and double-click on the bold-faced action. Change the Application Used box to c:\windows\notepad.exe again and try it.

Also, if this doesn't work, you can create a new action for the file (View or Edit or whatever) and set the application used to notepad. Then select the action and click the Set Default in the action list window for the file type. This would make a completely new action which would launch notepad when selected from the right-click menu or when double-clicked (if you set it to be the default). Good luck.

Collapse -

notepad stuck on one file

by gary.l.smith In reply to notepad stuck on one file

I assigned Word as the application to open .txt files. When I double clicked on a .txt file Word displayed four error message boxes. Three said the document name or path was not valid. The fourth said Word could not open the document. All are followed by a path name, the first of which is part of the path to the file I tried to open, but the other three seem irrelevant. However, Word did open the mysterious file 'Program'. Next, I created a new default action and assigned it to Wordpad. Wordpad simply opens 'Program', instead of the clicked file with no error messages.

Collapse -

notepad stuck on one file

by neon120 In reply to notepad stuck on one file

it also might be a virus.[QAZ A ]check to see if there is a file called note.com if so then you have a virus.noorton supplies agood remedy on the page.

Collapse -

notepad stuck on one file

by gary.l.smith In reply to notepad stuck on one file

There is not file called note.com. Using latest Norton Antivirus virus definition files (10/03/00) it finds no viruses.

Collapse -

notepad stuck on one file

by Seanpol In reply to notepad stuck on one file

Part of if not all of the problem is in the failed install of Access.
If you have a real registry problem reinstalling Windows will not fix it. If you can't change the file/program association.
Go to "Easydesksoftware.com" and take a browse there.I believe "regmedic" will help you untangle your registry, and provide you with information to keep disaster from rearing it's ugly head again.
Once you get rid of the failed install, it will let go of your text. applications.
I personally use "Configsafe" to keep a current,good registry profile.
Give it a go and kep in touch
Paul

Back to Windows Forum
12 total posts (Page 1 of 2)   01 | 02   Next

Related Discussions

Related Forums