Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to customize a folder programatically on Windows 7

Tags:

winapi

Windows 7 offers the possibility to customize folder icons and pictures by right clicking on the folder, choosing the "Properties" command and then the "Customize" tab, as explained for example here.

Can this be done programatically ?

like image 202
Jabberwocky Avatar asked Feb 16 '26 09:02

Jabberwocky


1 Answers

Yes, you can create a desktop.ini file programmatically. The file is documented here.

You could, for instance, rename the folder in an internationalization scenario (e.g. a folder named "users" could me displayed to the user as utilisateurs on a French OS, or Benutzer on a German OS), by creating a file with the following contents:

[.ShellClassInfo]
LocalizedResourceName=@C:\foo\bar.dll,-100

which would take the name of the folder in the bar.dll string resource ID 100.

like image 161
Pierre Arnaud Avatar answered Feb 21 '26 00:02

Pierre Arnaud



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!