删除快捷方式
Windows7
@echo off
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "%systemroot%system32imageres.dll,196" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
del "%userprofile%AppDataLocaliconcache.db" /f /q
start explorer
pause
Windows 10
@echo off
color 2
reg delete HKCRlnkfile /v IsShortcut /f
reg delete HKCRpiffile /v IsShortcut /f
reg delete HKCRInternetShortcut /v IsShortcut /f
taskkill /f /im explorer.exe && explorer
Windows Xp
reg add "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /d "%systemroot%system32shell32.dll,49" /t reg_sz /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%Local SettingsApplication Dataiconcache.db"
del "%userprofile%Local SettingsApplication Dataiconcache.db" /f /q
start explorer
pause
恢复快捷方式
恢复Win7快捷方式箭头,注意代码格式不要复制错误
reg delete "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%AppDataLocaliconcache.db"
del "%userprofile%AppDataLocaliconcache.db" /f /q
start explorer
pause
恢复XP快捷方式箭头,注意代码格式不要复制错误
reg delete "HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 29 /f
taskkill /f /im explorer.exe
attrib -s -r -h "%userprofile%Local SettingsApplication Dataiconcache.db"
del "%userprofile%Local SettingsApplication Dataiconcache.db" /f /q
start explorer
pause
「真诚赞赏,手留余香」
发表评论