我使用批处理文件通过用新文件替换现有文件来更改 desktop.ini 文件。这部分的代码是:
move /y "Games\desktop.ini" "%UserProfile%\Games"
它设法成功替换了文件(我使用了 attrib +s 和 +h),但文件夹的图标没有改变。我该怎么做才能让 Windows 资源管理器识别更改?我之前听说过 SHChangeNotify。
我想通了,就这么简单。我所要做的就是:
attrib +s +r "%UserProfile%\Games"
图标瞬间变了。
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句