Hi experts,

I am a beginner with KiX (which is a script language that I guess I like very much)...

I have a VBScript that I'd like to convert to KiX, but KiX's GetFileVersion() function is a myst to me...

The VBScript snippet I'd like to convert is:

Set objFSO = CreateObject("Scripting.FileSystemObject")

Chkfile = WSHShell.Environment("Process").Item("ProgramFiles") & "\WinZip\WINZIP32.EXE"

If objFSO.FileExists(Chkfile) Then
IF (objFSO.GetFileVersion(Chkfile) = "18.0.6224.0") Then
... (file exists and is correct version)
Else
... (file exists but is not correct version)
End If
Else
... (file does not exist)
End If

When I use the GetFileVersion() method with KiX, I get totally different results !!!

GetFileVersion("C:\Programme\WinZip\WINZIP32.EXE")
returns "18.0 (32bit)" instead of "18.0.6224.0" !

...the same for...
GetFileVersion("C:\Programme\WinZip\WINZIP32.EXE", "FileVersion")
...
also the "ProductVersion" switch does not return the correct (ie. wanted) results.

Could one of you please turn my attention on how to
get the file version of WINZIP32.EXE ("18.0.6224.0")
using KiX?

Thank you in advance,

Oliver Rosenkranz
o.*NOSPAM*rosenkranz@estensis.de
:confused: