Restoring .lnk File Associations

Last reviewed: September 4, 1997
Article ID: Q172053
The information in this article applies to:
  • Microsoft Windows NT Workstation version 4.0
  • Microsoft Windows NT Server version 4.0

SYMPTOMS

When you select programs from the Start menu or shortcuts nothing happens, the "Open with" dialog box is displayed or a specific program runs.

CAUSE

The .lnk association is either missing, incorrect or corrupted. Because all shortcuts and Program Menu items are files with a .lnk extension. Selecting one either brings up the "Open with" dialog box, a specific application such as Notepad.exe or Wordpad.exe or doesn't do anything.

RESOLUTION

You can correct this by either restoring the registry key from another working computer or manually replacing the registry key.

WARNING: Using Registry Editor incorrectly can cause serious, system-wide problems that may require you to reinstall Windows NT to correct them. Microsoft cannot guarantee that any problems resulting from the use of Registry Editor can be solved. Use this tool at your own risk.

To restore the registry key from another computer, perform the following steps:

  1. Start Registry Editor (Regedt32.exe) and select the following subkey:

    HKEY_CLASSES_ROOT\.lnk

  2. From the Edit menu, click Delete.

  3. On another Windows NT 4.0 computer, start Registry Editor (Regedt32.exe) and select the registry key HKEY_CLASSES_ROOT\.lnk.

  4. From the Registry menu, click Save Key.

  5. Copy this file to the computer exhibiting the problem or to a floppy disk.

  6. On the computer exhibiting the problem, recreate the registry key by selecting HKEY_CLASSES_ROOT and then from the Edit menu, click Add Key. Type .lnk for the key name.

  7. Select the new key, click Restore from the Registry menu, and select the file from the other computer or floppy disk.

  8. Quit Registry Editor and restart the computer. Test a Program menu item or shortcut.

To manually enter the information, perform the following steps:

  1. Start Registry Editor (Regedt32.exe), select the HKEY_CLASSES_ROOT subkey, and then from the Edit menu, click Add Key.

  2. In the Add Value dialog box, click OK to leave the Value Name blank, and the Data Type as REG_SZ.

  3. Type lnkfile in the String Editor dialog box, and then click OK.

  4. From the Edit menu, click Add Key and create the registry key ShellNew under HKEY_CLASSES_ROOT\.lnk

  5. Click Add Value from the Edit menu, and type Command for the Data Name with a Data Type of REG_SZ. Enter RunDLL32 AppWiz.Cpl,NewLinkHere %1 for the string.

  6. Quit Registry Editor and restart the computer.


Additional query words: Howto file types
Keywords : nthowto ntsetup NTSrvWkst kbfile
Version : WinNT:4.0
Platform : winnt
Issue type : kbhowto


THE INFORMATION PROVIDED IN THE MICROSOFT KNOWLEDGE BASE IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND. MICROSOFT DISCLAIMS ALL WARRANTIES, EITHER EXPRESS OR IMPLIED, INCLUDING THE WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL MICROSOFT CORPORATION OR ITS SUPPLIERS BE LIABLE FOR ANY DAMAGES WHATSOEVER INCLUDING DIRECT, INDIRECT, INCIDENTAL, CONSEQUENTIAL, LOSS OF BUSINESS PROFITS OR SPECIAL DAMAGES, EVEN IF MICROSOFT CORPORATION OR ITS SUPPLIERS HAVE BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. SOME STATES DO NOT ALLOW THE EXCLUSION OR LIMITATION OF LIABILITY FOR CONSEQUENTIAL OR INCIDENTAL DAMAGES SO THE FOREGOING LIMITATION MAY NOT APPLY.

Last reviewed: September 4, 1997
© 1998 Microsoft Corporation. All rights reserved. Terms of Use.