2014-09-01 78 views
0

如何通過另一個程序驗證.exe文件的發佈修訂版本? 我就是這麼做的,但結果是不正確的:獲取發佈修訂其他.exe c#

var b = path_exe; 
System.Version version = System.Reflection.Assembly.LoadFile(b).getName()Version; 

回答

0

您可以使用下面

FileVersionInfo fvi = FileVersionInfo.GetVersionInfo("path"); 
MessageBox.Show(fvi.FileVersion); 
MessageBox.Show(fvi.ProductVersion);