Windows10我的文档恢复默认

正文

打开cmd(管理员),运行:

1
cmd /c "md %userprofile%\Documents&reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\Explorer\Shell Folders" /v Personal /t reg_sz /d %USERPROFILE%\Documents /f&reg add "hkcu\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v Personal /t reg_expand_sz /d ^%USERPROFILE^%\Documents /f&reg delete "hkcu\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders" /v {F42EE2D3-909F-4907-8871-4C22FC0BF756} /f"

重启电脑,定位到c:\users\你的账户\路径下,右键Documents文件夹=>属性=>自定义=>更改图标=>还原默认值=>确定

image-20220109184344427

打开cmd(管理员),运行:

1
cmd /c "(echo.&echo [.ShellClassInfo]&echo LocalizedResourceName=@^%SystemRoot^%\system32\shell32.dll,-21770&echo IconResource=^%SystemRoot^%\system32\imageres.dll,-112&echo IconFile=^%SystemRoot^%\system32\shell32.dll&echo IconIndex=-235)>>%userprofile%\Documents\desktop.ini&attrib %userprofile%\Documents\desktop.ini +s +h"