要把一个文件夹拷到另外一个文件夹怎么实现啊?
现在一个上万条记录的数据库记录着文件的信息,有一个是文件的URL
现写程序将SQL查询到文件拷到一个路径去
拷贝文件的代码有没有呀
有没有这个类似的源码呀?
文件夹拷贝的源码也行
谢谢了!
有没有相关资料的下载啊?

解决方案 »

  1.   

    up~~
    COPY DIR 没做过。做过COPY FILES
      

  2.   

    Copies the source file to the destination file.
    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.
    DescriptionCopyFileTo is a function used to copy the file specified in Source to the file specified in Destination.
    CopyFileTo will return False if the file in Destination already exists.
    CopyFileTo encapsulates the platform-specific calls needed to perform the file copy operation. On the Windows platform, this is the Win32 API function CopyFile. On the Linux platform, CopyFileTo uses a TFileStream instance to create the destination file.
      

  3.   

    CopyFile(PChar(MyPath+'FileName'),PChar(MyPath+'FileName1'),True);
    FileName是要拷贝的文件;FileName1是拷贝后的文件名称
    True是覆盖
      

  4.   

    function CopyFileTo(const Source: string; const Destination: string): Boolean;