Platforms to show: All Mac Windows Linux Cross-Platform

Back to WindowsFileVersionMBS class.

WindowsFileVersionMBS.FileVersion as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The file version in an user readable string.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.FileVersion
end if

format is "1.2.3.4".

Some examples using this method:

WindowsFileVersionMBS.GetCompanyName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key CompanyName.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetCompanyName
end if

Some examples using this method:

WindowsFileVersionMBS.GetFileDescription as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key FileDescription.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetFileDescription
end if

Some examples using this method:

WindowsFileVersionMBS.GetFileVersion as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key FileVersion.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetFileVersion
end if

Some examples using this method:

WindowsFileVersionMBS.GetInternalName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key InternalName.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetInternalName
end if

Some examples using this method:

WindowsFileVersionMBS.GetLegalCopyright as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key LegalCopyright.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetLegalCopyright
end if

Some examples using this method:

WindowsFileVersionMBS.GetOriginalFilename as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key OriginalFilename.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetOriginalFilename
end if

Some examples using this method:

WindowsFileVersionMBS.GetProductName as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key ProductName.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetProductName
end if

Some examples using this method:

WindowsFileVersionMBS.GetProductVersion as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Returns value for key ProductVersion.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetProductVersion
end if

Some examples using this method:

WindowsFileVersionMBS.OpenFile(file as folderitem) as boolean

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Loads file information from a given file.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.GetCompanyName
end if

Returns true on success and false on failure.

WindowsFileVersionMBS.ProductVersion as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
The product version in an user readable string.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox w.ProductVersion
end if

format is "1.2.3.4"

Some examples using this method:

WindowsFileVersionMBS.QueryBinaryValue(key as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Low level function to read a binary item from the information resource.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
// we define encoding as UTF16 as we know the value for ProductName is an UTF16 string.
MsgBox DefineEncoding(w.QueryBinaryValue("ProductName"), encodings.UTF16)
end if

Returns "" on any error.

WindowsFileVersionMBS.QueryUnicodeValue(key as string) as string

Type Topic Plugin Version macOS Windows Linux iOS Targets
method Windows MBS Win Plugin 6.4 ❌ No ✅ Yes ❌ No ❌ No Desktop, Console & Web
Low level function to read an unicode string item from the information resource.
Example
dim f as FolderItem = SpecialFolder.Desktop.Child("dbgview.exe")
dim w as new WindowsFileVersionMBS
if w.OpenFile(f) then
MsgBox str(w.QueryUnicodeValue("ProductName"))
end if

Returns "" on any error.

The items on this page are in the following plugins: MBS Win Plugin.


The biggest plugin in space...