winform获取EXE图片
using (FileStream fs = new System.IO.FileStream(n,
FileMode.OpenOrCreate, FileAccess.Write, FileShare.None))
{
System.Drawing.Icon.ExtractAssociatedIcon(path).Save(fs);
}
2022-10-10 22:01:42
winform获取EXE图片
using (FileStream fs = new System.IO.FileStream(n,
FileMode.OpenOrCreate, FileAccess.Write, FileShare.None))
{
System.Drawing.Icon.ExtractAssociatedIcon(path).Save(fs);
}