delphi GetFileVersion 获取文件版本


本文整理自网络,侵删。

 
uses
  ShellApi, ShlObj,
  ComObj,
  ActiveX;


function GetFileVersion(const FileName: string): string;
var
  FSO  : OleVariant;
begin
  FSO    := CreateOleObject('Scripting.FileSystemObject');
  Result := FSO.GetFileVersion(FileName);
end;

procedure TForm1.Button1Click(Sender: TObject);
begin
showmessage(GetFileVersion('D:\防色墙\fangseqiang.exe'));
end;

相关阅读 >>

Delphi 得到指定文件夹内文件名

Delphi stringgrid如何清空

Delphi 键盘钩子的简单应用

Delphi sqlite 简明上手指南

Delphi 怎么计算一个memo中输入的汉字数目

Delphi xe更改ttrayicon系统任务栏图标(无模糊)

Delphi 获取网络图片在webbrowser显示 android/osx/ios/win的最佳方式

Delphi10.3 创建一条json数据

Delphi 注入win7的单元

Delphi 连接dbf数据

更多相关阅读请进入《Delphi》频道 >>



打赏

取消

感谢您的支持,我会继续努力的!

扫码支持
扫码打赏,您说多少就多少

打开支付宝扫一扫,即可进行扫码打赏哦

分享从这里开始,精彩与您同在

评论

管理员已关闭评论功能...