您当前的位置:首页 > 建站知识 > 编程知识

Delphi 复制和删除文件的方法

发布时间: 2013-08-14 │ 浏览:2960 

复制和删除文件的代码如下:

      org := ExtractFilePath(Application.ExeName) + 'update/' + 'a.txt';
      dest := ExtractFilePath(Application.ExeName) + 'a.txt';
      CopyFile(pchar(org), pchar(dest), false);

      DeleteFile(org);