从mac换到windows想美化一下系统于是在网上找了一个bat脚本用来美化
没想到脚本第一次找的脚本有问题导致了一些错误:
任务栏点击快捷方式时 弹出 该文件没有与之关联的应用来执行该操作
查了半天得以恢复
回复方法如下
(输入:cmd /k reg add "HKEY_CLASSES_ROOT\lnkfile" /v IsShortcut /f & taskkill /f /im explorer.exe & start explorer.exe )
方法一:
win+R,输入regedit,分别在
HKEY_CLASSES_ROOT\piffile
HKEY_CLASSES_ROOT\InternetShortcut
HKEY_CLASSES_ROOT\lnkfile
中新建→字符串值,命名为IsShortcut
方法二:
taskkill /f /im explorer.exe
reg add "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "C:\Windows\system32\imageres.dll,154" /t reg_sz /f
reg add "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Icons" /v 29 /d "C:\Windows\system32\imageres.dll,154" /t reg_sz /f
reg add "HKEY_CLASSES_ROOT\lnkfile" /