I personally think that this method has a small amount of code, only a few lines are needed, and the form does not need to be filled in too much, but you need to know the object and method names. Moreover, if it is not processed, the object and method names will be directly exposed and are easily modified by others.
The code is as follows:
.Version 2 .Subprogram 取文件Version, Text type, public, The source code is adapted from Yi Language Resource Network() .parameter File address, Text type .Local variables COMObject, Object .Local variables result, Text type COMObject.create (“”, ) result = COMObject.Text Methods (“GetFileVersion”, File address) COMObject.Clear () return (result)
Friends who are interested in this can test the code. Thank you for your support.