why is GetFileVersion() not working???

  • Thread starter Thread starter -- kurt --
  • Start date Start date
K

-- kurt --

HI ALL

DOES ANYONE HAVE A IDEA WHY GetFileVersion() IS NOT
WORKING ON THE CF EVEN WHEN ITS ON THE HELP AS BELOW:

Public Sub GetFileVersion()
' Get the file version for the notepad.
Dim myFileVersionInfo As FileVersionInfo =
FileVersionInfo.GetVersionInfo("%systemroot%\Notepad.exe")

' Print the file name and version number.
textBox1.Text = "File: " &
myFileVersionInfo.FileDescription & ControlChars.Cr & _
"Version number: " & myFileVersionInfo.FileVersion
End Sub 'GetFileVersion

BUT IN MY System.Diagnostics I DONT HAVE A GetFileVersion.
SO IS THERE A OTHER WAY TO GET THE CURRENT VERSION OF THE
FILE COMPILED ON THE CF SO IT CAN BE DISPLAYED FOR THE
USER ON A FORM?

THANKS FOR YOUR HELP
-- kurt --
 
well it seems just wrong than they have the cf in the
GetFileVersion() help site.

the solution 2 the GetFileVersion() is the following:
Titel =
System.Reflection.Assembly.GetExecutingAssembly.GetName.ToS
tring()

just in case anyone have same need
cheers -- kurt --
 
Back
Top