lcNewExeFile = NewVersionFolder+"YourExe.EXE" lcOldExeFile = SYS(16,1) aGetFileVersion(aNewFile, m.lcNewExeFile) aGetFileVersion(aOldFile, m.lcOldExeFile) IF aNewFile[4] > aOldFile[4] ** do copy here ENDIFBut I'll do that different way (I am not saying that this is the best way), instead download whole EXE because it is too big, in FTP server i'll put some small TXT file with just version of EXE there, then I download this file read it and coppare with the EXE that is on the local computer. Something like that (after you download the file)
lcNewExeFileVersionFile = NewVersionFolder+"YourExeVersioTXTFile.TXT" lcOldExeFile = SYS(16,1) aNewVersion = FILETOSTR(lcNewExeFileVersionFile) aNewVersion = CHRTRAN(aNewVersion, CHRTRAN(aNewVersion,"01234567890.",""),"") && Remove all unneccesasary chars aGetFileVersion(aOldFile, m.lcOldExeFile) IF m.aNewVersion > aOldFile[4] ** do copy here ENDIF