CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: copy *.*

  1. #1
    Join Date
    Apr 1999
    Posts
    8

    copy *.*

    Does anyone know how I could achieve something like the DOS command "copy *.*" in c++ code? I'm simply trying to copy the contents of on directory to another. Thanks in advance for any advice/help.

    Thranil


  2. #2
    Join Date
    Jun 1999
    Location
    Miami, FL
    Posts
    972

    Re: copy *.*

    You need to retrieve all the files in the directory, which CFileFind can help you do. Then you need to call CopyFile to copy each file one at a time.

    Good luck!


  3. #3
    Join Date
    Apr 1999
    Location
    Germay, Baden-Württemberg
    Posts
    18

    Re: copy *.*

    Why don't you use SHFileOperation(). This is a nice function to copy, move, delete files and dirs.

    Regards,
    Erich

    _____________________________________________________________________
    anti-spam: remove dashes in mail-adress to send mail
    Erich Hermann
    ETAS GmbH & Co. KG e-mail: [email protected]
    Borsigstr. 10 Phone: (+49)711-89661-144
    D-70469 Stuttgart Fax: (+49)711-89661-107

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured