Made changes to desktop.ini with batch file but folder icons won't change

537 Views Asked by At

I used a batch file to make changes to a desktop.ini file by replacing the existing one with a new one. The code for this part is:

move /y "Games\desktop.ini" "%UserProfile%\Games"

It manages to successfully replace the file (I used attrib +s and +h) but the folder's icon doesn't change. What can I do to make Windows Explorer recognize the change? I heard something about SHChangeNotify before.

1

There are 1 best solutions below

1
On BEST ANSWER

I figured it out, it was so simple. All I had to do was this:

attrib +s +r "%UserProfile%\Games"

Icon changed instantly.