details of a exe
-
hi i want to get the values like file version product version of an exe pls give me some idea
with regards Balagurunathan.B
Try looking at the FileVersionInfo[^] class.
Scott.
—In just two days, tomorrow will be yesterday. [Forum Guidelines] [Articles] [Blog]
-
hi i want to get the values like file version product version of an exe pls give me some idea
with regards Balagurunathan.B
Hi, Here is the complete snippet for using the FileVersionInfo class. Thought this would be better for displaying a couple of things: 1. How to get the System Directory 2. How to get the file info. (your primary concern)
Dim appName As String = Environment.SystemDirectory & "\notepad.exe" Label1.Text = _ "Comments: " & FileVersionInfo.GetVersionInfo(appName).Comments & vbCrLf & _ "Company Name: " & FileVersionInfo.GetVersionInfo(appName).CompanyName.Trim & vbCrLf & _ "File Build Part: " & FileVersionInfo.GetVersionInfo(appName).FileBuildPart.ToString.Trim & vbCrLf & _ "File Description: " & FileVersionInfo.GetVersionInfo(appName).FileDescription.Trim & vbCrLf & _ "Filename: " & FileVersionInfo.GetVersionInfo(appName).FileName.Trim & vbCrLf & _ "File Version: " & FileVersionInfo.GetVersionInfo(appName).FileVersion.Trim & vbCrLf & _ "Internal Name: " & FileVersionInfo.GetVersionInfo(appName).InternalName.Trim & vbCrLf & _ "Is Debug: " & FileVersionInfo.GetVersionInfo(appName).IsDebug.ToString & vbCrLf & _ "Is Patched: " & FileVersionInfo.GetVersionInfo(appName).IsPatched & vbCrLf & _ "Language: " & FileVersionInfo.GetVersionInfo(appName).Language & vbCrLf & _ "Legal Copyright: " & FileVersionInfo.GetVersionInfo(appName).LegalCopyright & vbCrLf & _ "Product Name: " & FileVersionInfo.GetVersionInfo(appName).ProductName & vbCrLf & _ "Product Version: " & FileVersionInfo.GetVersionInfo(appName).ProductVersion & vbCrLf & _ "Special Build: " & FileVersionInfo.GetVersionInfo(appName).LegalTrademarks & vbCrLf & _ "Original Filename: " & FileVersionInfo.GetVersionInfo(appName).OriginalFilename & vbCrLf & _ " Needless to say that there are some more properties."
So if you haven't really done a lot then this should help you out. In case i was late in posting (:laugh:as usual) please pardon me. Happy Coding! :)Regards, Vaibhav Sharma