Cannot open .txt files

J

Jimmy

Every time I double-click a .txt file to open it up, a
dialog box pops up saying that:

"Windows cannot find PROGRAM.exe. This program is needed
for opening files of type 'TXT File'."

I've tried using the "Search for files & folders" in the
Start Menu for the PROGRAM.exe file on my computer, but it
comes up empty.

Much thanks in advance to anyone who can help me solve
this mystery.
 
D

Dave Patrick

From a command prompt;
assoc .txt
should return with
..txt=txtfile
if not
assoc .txt=txtfile
to restore the default file type association.

ftype txtfile
should return with
txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
if not
ftype txtfile=%SystemRoot%\system32\NOTEPAD.EXE %1
to restore the default open action for the file type.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Every time I double-click a .txt file to open it up, a
| dialog box pops up saying that:
|
| "Windows cannot find PROGRAM.exe. This program is needed
| for opening files of type 'TXT File'."
|
| I've tried using the "Search for files & folders" in the
| Start Menu for the PROGRAM.exe file on my computer, but it
| comes up empty.
|
| Much thanks in advance to anyone who can help me solve
| this mystery.
|
 
J

Jimmy

I entered those two commands and did receive the expected
output, but the text files still won't open on its own.

Thanks for the assist.

Jimmy
 
D

Dave Patrick

You might try; while in Explorer, right click on a file of the type in
question, then choose "Open With", "Choose Program"
(%systemroot%\notepad.exe) , then choose and check the box for "Always use
this program....."

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
|I entered those two commands and did receive the expected
| output, but the text files still won't open on its own.
|
| Thanks for the assist.
|
| Jimmy
 
J

Jimmy

Thank you for your patient help. The files finally show
up as text-file icons in Windows Explorer.

I usually use TextPad as my word processor, so I was
trying to associate the files with that program, but it
just wouldn't catch. Ah well, at least they're openable
now.

Thanks again.

Jimmy
 
D

Dave Patrick

You're welcome.

--
Regards,

Dave Patrick ....Please no email replies - reply in newsgroup.
Microsoft Certified Professional
Microsoft MVP [Windows]
http://www.microsoft.com/protect

:
| Thank you for your patient help. The files finally show
| up as text-file icons in Windows Explorer.
|
| I usually use TextPad as my word processor, so I was
| trying to associate the files with that program, but it
| just wouldn't catch. Ah well, at least they're openable
| now.
|
| Thanks again.
|
| Jimmy
|
|
 

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