What would be the best way to perform this check?
------------
GetFileInfo ( COMMONFILES ^ "Microsoft Shared" ^ "Proof" ^ "mssp3en.lex" , FILE_SIZE , nvResult , svResult );
NumToStr (svString, nvResult);
SprintfBox ( INFORMATION , "File Information" , "The file size is %s." , svString );
nResult = FileCompare ( svString , "355000", COMPARE_SIZE);
switch (nResult)
case LESS_THAN:
MessageBox ("File smaller will be updated.", INFORMATION ) ;
case GREATER_THAN:
MessageBox ("File bigger will be updated.", INFORMATION ) ;
case EQUALS:
MessageBox ("Same size.", INFORMATION ) ;
case OTHER_FAILURE:
MessageBox ("Something happened.", INFORMATION ) ;
default:
MessageBox ("Unable to compare.", INFORMATION ) ;
endswitch;
------------
Edited by vaqueros, 04 February 2005 - 17:22.