I am using .Net 3.5/4.0 with code in C#.
I am trying to get a version number of an exe file on my C: drive.
For example path is: c:\\Program\\demo.exe. If t
You can use FileVersionInfo.FileVersion to fetch this from a path.
var versionInfo = FileVersionInfo.GetVersionInfo(pathToExe); string version = versionInfo.FileVersion; // Will typically return "1.0.0.0" in your case