string FileLocate = @"\\Address\Filename.exe"; if (File.Exists(FileLocate) == true) { var versionInfo = FileVersionInfo.GetVersionInfo(FileLocate); string version = versionInfo.ProductVersion; // "1.0.0" as default string MessageBoxTitle = "Version"; string MessageBoxContent = version.ToString() + "\n"; DialogResult dialogResult = MessageBox.Show(MessageBoxContent, MessageBoxTitle, MessageBoxButtons.OK); }
沒有留言:
張貼留言