Thread: CopyDirectory

  1. #1
    A.I Programmer
    Join Date
    Mar 2007
    Location
    Teresina - Brazil
    Posts
    47

    CopyDirectory

    Hello...

    I would like of know if the API or the Shell of the windows defines some function that copies a directory (folder), its subdirectories and its archives.

    I use Win32 API…

    I appreciate any aid.

    bye

  2. #2
    and the hat of int overfl Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    39,659
    copyFile() + use of a tree walker as outlined in the FAQ ?
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.

  3. #3
    Registered Abuser
    Join Date
    Jun 2006
    Location
    Toronto
    Posts
    591
    SHFileOperation. Set wFunc to FO_COPY and use a wildcard in pFrom to copy all contents.

Popular pages Recent additions subscribe to a feed