Win10 clicks on the taskbar to pin the application and reports an error: The file does not have an application associated with it to perform this operation.

Create a new bat file, write the following code, and then run it with administrator rights.

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" /v IsShortcut /t reg_sz /f
reg add "HEKY_CLASSES_ROOT\piffile" /v IsShortcut /t reg_sz /f
start explorer

Insert image description here
After that, the computer will flash and be configured, and no prompt will appear again. Effective!

Guess you like

Origin blog.csdn.net/weixin_43658159/article/details/115750690