loFSO = Createobject("Scripting.FileSystemObject") filepath = 'U:\questpdm\picture\whatever.jpg' loFile = loFSO.Getfile(filePath) IF transform(loFile.Size)<='500000' MESSAGEBOX("File Size is OK") ELSE MESSAGEBOX("File Size is not OK") ENDIFI should be getting the message "File Size is OK"