如何在 Windows 7 中重置快捷方式(.lnk 文件)?

Joe*_*tti 44 windows-registry windows-7 shortcuts

不知何故,我打开了一个快捷方式,Windows 找不到目标,但它没有将快捷方式指向 ,而是.exe.lnk文件处理程序指向.exe,所以现在我所有的.lnk文件都试图被 Borderlands 游戏打开。

这是怎么回事?

我猜我可以通过重置 中的.lnk条目来做到这一点HKEY_CLASSES_ROOT,但我不知道将其设置为什么。

小智 29

regedit从开始菜单打开(您也可以使用运行命令调用该文件)。
导航到以下注册表分支:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk

单击箭头将其展开并删除名为 的子项UserChoice。退出注册表编辑器。

在此之后重新启动。

  • 您甚至可以重新启动 explorer.exe 而不是重新启动。 (5认同)
  • Microsoft KB 上有一个类似的问题,他们的解决方案不起作用!这个答案比他们的好!=) (2认同)

小智 26

Follow these steps to save the Registry code below into a .reg file then import it into the Registry:

  1. Open Notepad
  2. Copy and paste the Registry code below into the Notepad window
  3. Save the file to your Desktop with the name fixshortcuts.reg
  4. On your Desktop open fixshortcuts.reg and merge the file into the Registry
  5. Log off and back on to make the changes take effect

Windows Registry Editor Version 5.00

;LNK file association fix for Windows Vista.
;Updated on April 24, 2007

[HKEY_CLASSES_ROOT\.lnk]
@="lnkfile"

[HKEY_CLASSES_ROOT\.lnk\ShellEx]

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214EE-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{000214F9-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{00021500-0000-0000-C000-000000000046}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellEx\{BB2E617C-0920-11d1-9A0B-00C04FC2D6C1}]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\.lnk\ShellNew]
"Handler"="{ceefea1b-3e29-4ef1-b34c-fec79c4f70af}"
"IconPath"=hex(2):25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,6f,00,\
  74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,00,73,\
  00,68,00,65,00,6c,00,6c,00,33,00,32,00,2e,00,64,00,6c,00,6c,00,2c,00,2d,00,\
  31,00,36,00,37,00,36,00,39,00,00,00
"ItemName"="@shell32.dll,-30397"
"MenuText"="@shell32.dll,-30318"
"NullFile"=""
"Command"=-

[HKEY_CLASSES_ROOT\.lnk\ShellNew\Config]
"DontRename"=""

[HKEY_CLASSES_ROOT\lnkfile]
@="Shortcut"
"EditFlags"=dword:00000001
"FriendlyTypeName"="@shell32.dll,-4153"
"NeverShowExt"=""
"IsShortcut"=""

[HKEY_CLASSES_ROOT\lnkfile\CLSID]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\lnkfile\shellex]

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers]

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\OpenContainingFolderMenu]
@="{37ea3a21-7493-4208-a011-7f9ea79ce9f5}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\ContextMenuHandlers\{00021401-0000-0000-C000-000000000046}]
@=""

[HKEY_CLASSES_ROOT\lnkfile\shellex\DropHandler]
@="{00021401-0000-0000-C000-000000000046}"

[HKEY_CLASSES_ROOT\lnkfile\shellex\IconHandler]
@="{00021401-0000-0000-C000-000000000046}"

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\UserChoice]
Run Code Online (Sandbox Code Playgroud)

  • 这是惊人的。你真了不起。它就像一个魅力。(在我注销并再次打开后)。 (2认同)
  • 你救了我的命! (2认同)

小智 12

该扩展名.lnk与 Lnkfile 相关联,后者通常被称为快捷方式。

要修复错误关联,请打开命令提示符并键入:

assoc.lnk=lnkfile
Run Code Online (Sandbox Code Playgroud)

Enter,你应该很高兴去。


Joe*_*tti 8

系统还原到问题开始之前将修复它,并且可能任何其他文件关联更改。

感谢上帝提供系统还原点。我不知道直接修复,但我已经备份并运行。

如果您不能用手术刀修复它,请尝试使用大锤。

  • 如果你不能用大锤把它修好,那你就打得不够用力! (10认同)

归档时间:

查看次数:

312424 次

最近记录:

9 年,2 月 前