Basically what I am trying to do is compare a file version from a local machine to a server. If the client version is different than the server version I want it to write to a file. The code below works as planned but I wanted to add the fileversion to the line it writes to the file. This should be easy answered. I know very little about Kix and am just learning.
Thanks!
Matt
Code:
Break On
Dim $SO
$SO=SetOption('Explicit','On')
$SO=SetOption('NoVarsInStrings','On')
$SO=SetOption('NoMacrosInStrings','On')
DIM $LFile, $SFile, $LVersion, $SVersion, $Msg, $FFile
$LFile = "C:\Program Files\Citrix\pn.exe"
$LVersion = GetFileVersion($LFile,'BinFileVersion')
$SFile = "\\ctmstxp\ctx$\pn.exe"
$SVersion = GetFileVersion($SFile,'BinFileVersion')
If @ERROR
'Error getting LOCAL file information: ' + @ERROR + ' - ' + @SERROR ?
EndIf
'Local file version is: ' + $LVersion ?
'Server file version is: ' + $SVersion ?
If $SVersion <> $LVersion
OPEN (1, "\\ctmstxp\ctx$\ica.txt", 5)
WRITELINE (1, @USERID + " has old ica client version" + @CRLF)
Close(1)
ENDIF