information from exe file
问题 I have an exe file simpleservice.exe in the physical path F:\SAMPLEPRODUCT\Bin ,, i need to fetch version number of that exe file,,Can you give the code required to fetch the version number 回答1: I'd use the following to do this: Assembly.LoadFrom("...").GetName().Version.ToString(); or I'd use the FileVersionInfo class. Take your pick: FileVersionInfo.GetVersionInfo("..."); 回答2: You can use FileVersionInfo.GetVersionInfo for this Eg: public void GetFileVersion() { // Get the file version for