复制文件的delphi中如何用高手指教.

解决方案 »

  1.   

    看这个:function CopyFileTo(const Source: string; const Destination: string): Boolean;Parametersconst Source: stringSource file name.
    const Destination: stringDestination file name.
    ReturnsBoolean - True if the file is copied, False on error.
      

  2.   

    Copyfile(pchar(ExitsFilename),pchar(NewFilename),false);
    //最后一个参数表示如果目标文件已存在是否继续
      

  3.   

    copyfileto应该用那个windows的库文件
      

  4.   

    CopyFile('c:\abc.txt','d:\aaa.txt',false);
    api直接写就行了,要看在windows单元下
    第一个参数是源文件,第二个参数是目标文件,第三个参数是告诉系统文件是否存在,以便于系统决定是否要覆盖该文件.
      

  5.   

    CopyFile('c:\abc.txt','d:\aaa.txt',true);
    第三个参数设为true
    这样就行了.