notepad reinstall

J

jim

I recently replaced Notepad.exe in W2K with Metapad. I
have now reinstalled Notepad.exe. I have reinstalled
Notepad.exe in all the right folders i.e. WINNT, SYSTEM32
and DLLCACHE. When I try to open any *.txt file I get the
error mesage "Cannot find file "path\filename" (or one of
its components). Make sure the path and filename are
correct and that all required libraries are available."
Can anyone help?

Thanks,
Jim.
 
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

:
|I recently replaced Notepad.exe in W2K with Metapad. I
| have now reinstalled Notepad.exe. I have reinstalled
| Notepad.exe in all the right folders i.e. WINNT, SYSTEM32
| and DLLCACHE. When I try to open any *.txt file I get the
| error mesage "Cannot find file "path\filename" (or one of
| its components). Make sure the path and filename are
| correct and that all required libraries are available."
| Can anyone help?
|
| Thanks,
| Jim.
 
G

Guest

Dave,

It worked. From command prompt assoc .txt
returned .txt=txt_auto_file. I changed it as per your
instructions. ftype txtfile was OK. Seems to be working
fine. Thanks,
Jim.
 
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

| Dave,
|
| It worked. From command prompt assoc .txt
| returned .txt=txt_auto_file. I changed it as per your
| instructions. ftype txtfile was OK. Seems to be working
| fine. Thanks,
| Jim.
 

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