//声明:
CopyFile(
  lpExistingFileName: PChar; {源文件}
  lpNewFileName: PChar;	     {目标文件}
  bFailIfExists: BOOL        {如果目标文件存在, True: 失败; False: 覆盖}
): BOOL;

//例1: begin CopyFile('c:\BOOTLOG.TXT', 'c:\temp\BOOTLOG.TXT', True); end;
//例2: var ExistFile, NewFile: string; begin ExistFile := 'c:\BOOTLOG.TXT'; NewFile := 'c:\temp\BOOTLOG.TXT'; if CopyFile(PChar(ExistFile), PChar(NewFile), True) then ShowMessage('复制成功'); end;

相关文章:

  • 2022-02-05
  • 2021-05-18
  • 2022-01-14
  • 2022-12-23
  • 2021-11-28
猜你喜欢
  • 2022-12-23
  • 2021-12-28
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案