Hello
Good time
I have more than 1000 movie folders and I want to change the folder icon for any movie based on desktop.ini.
For example, I have a lot of films in the following way.
F:\Movies\
How can I do it in C#.
1. Create a desktop.ini file in each folder.
2. The contents of each desktop.ini file are as follows.
[.ShellClassInfo]
IconResource=*.ico,0
3. In front of the phrase IconResource = Only the file name that has the .ico extension.
for example:
[.ShellClassInfo]
IconResource=Stranger Things.ico,0
please give the idea and source code....
Thank
What I have tried:
The amount of code I've written for a folder. The executable file in the folder creates the desktop.ini file and places it in two lines. And I do not know the rest of the steps. What should I do?
[.ShellClassInfo]
IconResource=
private void button1_Click(object sender, EventArgs e)
{
TextWriter tw = new StreamWriter("desktop.ini");
tw.WriteLine("[.ShellClassInfo]");
tw.WriteLine("IconResource=" );
tw.Close();
}