  PersComp Premium join:2005-08-17 Cayce, SC
| [Other] .nt file extension association
I have a customer that uses an old DOS based app. When setting up for it, I have to modify "files" line in the config.nt file. I wasn't thinking when I opened the file with notepad and left the check box for "always associate" checked. Now the app won't run. My suspicion is that the formatting added by the notepad app has somehow made the file un-usable for DOS apps. I cannot even launch "edit" within DOS.
Any suggestions on how to get windows to forget how to open the file???? I can change it to another app, but that doesn't help.  -- Are these instructions or corrections??? |
|
  freebird317 Premium join:2004-02-23 Portland, OR | Maybe system restore if it is only one pc.  |
|
 dave Premium,MVM join:2000-05-04 not in ohio | reply to PersComp Try opening a command prompt and typing
assoc .nt=
|
|
 PuterJunkie
join:2002-10-03 Powell, TN
| reply to PersComp If it is a file association in Windows that's easy enough to fix. Right click on My Computer and select Explore. Then go to Tools/Folder options. In Folder Options pick File Types, scroll down and look for the Extension NT. Just delete it. I am not sure I understand though, the app is running in pure dos or in a command window from another version of Windows? Try take it back to Windows and removing the file association. Also try remaning to another extension that Editor recognizes like .txt or .bat. Notepad does not add any formatting, in fact if you open a document with formatting it should remove it. I use it to strip formatting out of Word documents. |
|
 dave Premium,MVM join:2000-05-04 not in ohio
·Verizon Online DSL
·Verizon FIOS
| config.nt more-or-less has to be called config.nt, since it's used by the Virtual DOS Machine startup code. It is the counterpart in the VDM of config.sys in actual DOS.
(Yeah, you could call it something else, then modify every MS-DOS program shortcut, but really that's a pretty clunky way to solve the problem).
I'm surprised that the existence of an association for .nt breaks the VDM, but I guess it's possible. |
|
 ChiTang Premium,MVM join:2002-08-23 Alhambra, CA
1 edit | reply to PersComp If adding association to .nt breaks the DOS-APP, then it is something new to me. You may have make a mistake in the edit. There is a copy of config.nt and autoexec.nt in the c:\windows\repair folder, copy them back to start over. This time, use cmd and edit.com to make changes.
May also try to delete the association under My computer -> tools -> folder options -> file types.
-- I used to be indecisive, now I am not sure. |
|
  Rxdoxx Premium,Mod join:2000-11-03 Middle River, MD clubs: 
·Verizon FIOS
·Comcast
Host: Software Washington & Balti..
| reply to PersComp Left the check box checked? Sounds like you were using windows to look at it? If so can you r-click it, choose open with (instead of open) and choose something else to re-associate the file with? (Sounded like you could) May have to use the browse function and find the command for the old app. -- Was a Cruise Fanatic, one cruise on Princess cured me. Bleah |
|
 dave Premium,MVM join:2000-05-04 not in ohio | AFAIK, .nt is not normally associated.
The one-line command I gave removes the association, thus restoring the status quo ante. |
|
  PersComp Premium join:2005-08-17 Cayce, SC
| reply to PersComp To add some info and respond to a couple of comments. This is a w2k box, so system restore is not available.
Perhaps it is not a file association issue as upon closer review within the "file type" section it does not actually list .nt as an extension. When viewing the file in an explorer window, it shows the notepad icon. I just assumed that had to be the reason. This is a freshly formatted machine that I have set up dozens like before for this customer. I actually copied the config.nt file from another working PC and get the same error.
I ran the command that Dave suggested and still have the same issue as well.
I attached the exact error that comes up. I get this same error when simply typing "edit" from within a DOS prompt. Perhaps I am not diagnosing the error properly when thinking it is association related.
I'm all ears for other suggestions. -- Are these instructions or corrections??? |
|
  rfnut Premium join:2002-04-27 Fisher, IL | When you opened, and edited, config.nt in notepad, did it get saved as config.nt.txt by mistake?
Any long lines get "word wrapped"?
Was file saved as "plain text" and encoding ANSI.
Just my 2 cents. |
|
  PapaDos Cum Grano Salis Premium,MVM join:2001-02-08 Lasalle, QC | reply to PersComp »support.microsoft.com/kb/889506 -- Festina Lente |
|
  PersComp Premium join:2005-08-17 Cayce, SC
| reply to rfnut said by rfnut :When you opened, and edited, config.nt in notepad, did it get saved as config.nt.txt by mistake? Any long lines get "word wrapped"? Was file saved as "plain text" and encoding ANSI. Just my 2 cents. Yes, it was saved as config.nt.txt
Also, I will try the link supplied by PapaDos tomorrow. -- Are these instructions or corrections??? |
|
  rfnut Premium join:2002-04-27 Fisher, IL | Is it still "config.nt.txt" ? It will need to be renamed back to "config.nt" if it is. |
|
  R2 R Not Premium,MVM join:2000-09-18 Long Beach, CA clubs:
2 edits | I believe -- but in this high-powered crowd, I am not certain -- that you need make sure that "Hide file extensions for known file types" is not checked. Otherwise it is a PITA to Rename anything!
Go to "Folder Options | View" -- any way you like -- and UNcheck "Hide file extensions for known file types". This may, or may not, help you. ______________
Certainly if the file was renamed with a .txt extension it would become unusable. |
|
  PersComp Premium join:2005-08-17 Cayce, SC
| reply to PapaDos PapaDos....U 'da man!!!! That took care of it! Many Thanks! Merry Christmas to all!!! -- Are these instructions or corrections??? |
|
  PapaDos Cum Grano Salis Premium,MVM join:2001-02-08 Lasalle, QC | Bienvenue !  |
|
  PersComp Premium join:2005-08-17 Cayce, SC
| reply to PersComp OK....now I have the same issue with a DOS installation on an XP Home box (except it is now referring to the autoexec.bat file). The link above doesn't work due to the different gui for XP home.
Thanks in Advance!!! -- Are these instructions or corrections??? |
|
  rfnut Premium join:2002-04-27 Fisher, IL | Since it is a different machine I would start here.
»support.microsoft.com/?kbid=324767 |
|
  PapaDos Cum Grano Salis Premium,MVM join:2001-02-08 Lasalle, QC | reply to PersComp Autoexec.bat is not used by NT kernel based Windows. What is the exact error message you are getting ? -- Festina Lente |
|
  PersComp Premium join:2005-08-17 Cayce, SC
| reply to PersComp Unfortunately, I was poating what the customer told me (didn't see the error myself). I sent the customer a copy of config.nt and autoexec.nt and had them copy them into the system32 folder and all is good now. Thanks to all for the responses!!!! Happy New Year!!! -- Are these instructions or corrections??? |
|