winform获取EXE图片

winform获取EXE图片

using (FileStream fs = new System.IO.FileStream(n,
FileMode.OpenOrCreate, FileAccess.Write, FileShare.None))
{
System.Drawing.Icon.ExtractAssociatedIcon(path).Save(fs);
}

 

你可能感兴趣的:(winform获取EXE图片)