private void button1_Click(object sender, EventArgs e) { TextWriter tw = new StreamWriter("desktop.ini"); tw.WriteLine("[.ShellClassInfo]"); tw.WriteLine("IconResource=" ); tw.Close(); }