本文整理自网络,侵删。
user idhttp;var Stream: TMemoryStream;begin try try Stream := TMemoryStream.Create; IdHTTP1.Get('http://dww.no-ip.org/simplex/spw.exe', Stream); a := IdHTTP1.Response.ContentLength; RenameFile('spw.exe', 'spw.old'); Stream.SaveToFile('spw.exe'); finally Stream.Free; IdHTTP1.Disconnect; end; except RenameFile('spw.old', 'spw.exe'); end;
相关阅读 >>
Delphi 学习 sql 语句 - select(8): 分组条件
Delphi 7zip 示例调用7z.dll 压缩及解压.7z文件
更多相关阅读请进入《Delphi》频道 >>