2023年12月23日发(作者:)
一般我们更换文件夹的图标是在属性里更改,也就是方法,这个方法只能更改自己要更改的文件夹的图标,而不能更改系统默认的黄色文件夹,
Win7用户运行下面的代码:
reg add
"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 3 /t reg_sz /d "图标文件所在的路径" /f
attrib -s -r -h "%userprofile%"
del "%userprofile%" /f /q
taskkill /f /im
start explorer
XP用户运行下面的代码:
reg add
"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 3 /t reg_sz /d "图标文件所在的路径" /f
taskkill /f /im
attrib -s -r -h "%userprofile%Local SettingsApplication
"
del "%userprofile%Local SettingsApplication
" /f /q
start explorer
上面红色加粗的地方就是要替换的图标路径,比如D:,这个图标就会代替系统默认的黄色图标,将图标的绝对路径填写到双引号内
将上面的代码复制到记事本中,然后另存,文件类型为所有文件,然后右键-以管理员身份运行
运行完代码,就会看到效果了
如果想恢复到系统默认的文件夹,用同样的方法运行下面的代码
Win7
reg delete
"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 3 /f
attrib -s -r -h "%userprofile%"
del "%userprofile%" /f /q
taskkill /f /im
start explorer
XP
reg delete
"HKEY_LOCAL_MACHINESOFTWAREMicrosoftWindowsCurrentVersionExplorerShell Icons" /v 3 /f
taskkill /f /im
attrib -s -r -h "%userprofile%Local SettingsApplication
"
del "%userprofile%Local SettingsApplication
" /f /q
start explorer


发布评论