Folder Icon Change

前端 未结 3 793
既然无缘
既然无缘 2020-12-18 08:34

I am changing the folder icons with c# function. Its working fine but the problem is its working for first time. I mean I am not able to change the icon for the folder for w

3条回答
  •  一生所求
    2020-12-18 09:24

    I've faced with similar issue. Just remove the desktop.ini file before calling the function for the second time. The same scenario is used if you would like to clear folder icon:

    1. Remove desktop.ini.
    2. Omit the following lines:

    ....

    FolderSettings.pszIconFile = @"{icon path}";
    FolderSettings.iIconIndex = 0;
    

    ....

提交回复
热议问题