.lnk 文件恢复默认打开方式

 

新建txt文本写入一下脚本,另存为.reg文件,双击执行即可(可能会提示一部分在使用无法导入,可以忽视掉)执行完毕后注销或重启电脑即可

 

Windows Registry Editor Version 5.00

 

[-HKEY_CLASSES_ROOT\.lnk]

[-HKEY_CLASSES_ROOT\lnkfile]

[-HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk]

 

[HKEY_CLASSES_ROOT\.lnk]

@="lnkfile"

 

[HKEY_CLASSES_ROOT\.lnk\ShellNew]

"Command"="rundll32.exe appwiz.cpl,NewLinkHere %1"

 

[HKEY_CLASSES_ROOT\lnkfile]

@="快捷方式"

"EditFlags"=dword:00000001

"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\Offline Files]

@="{750fdf0e-2a26-11d1-a3ea-080036587f03}"

 

[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_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers]

 

[HKEY_CLASSES_ROOT\lnkfile\shellex\PropertySheetHandlers\ShimLayer Property Page]

@="{513D916F-2A8E-4F51-AEAB-0CBC76FB1AF8}"

 

 

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

 

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\OpenWithList]

 

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts\.lnk\OpenWithProgids]

"lnkfile"=hex(0):

 

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.lnk]

@="lnkfile"

 

[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\.lnk\ShellNew]

"Command"="rundll32.exe appwiz.cpl,NewLinkHere %1"

你可能感兴趣的:(.lnk 文件恢复默认打开方式)