Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C / C++ / MFC
  4. Copy Folder to Folder

Copy Folder to Folder

Scheduled Pinned Locked Moved C / C++ / MFC
questionhelp
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • M Offline
    M Offline
    MsmVc
    wrote on last edited by
    #1

    Hi All How can i copy Folder complete data to Folder?I have a source folder A which have 10 files and 2 folder.My destination folder B.I want to copy folder A to B.Plz help me

    J _ S 3 Replies Last reply
    0
    • M MsmVc

      Hi All How can i copy Folder complete data to Folder?I have a source folder A which have 10 files and 2 folder.My destination folder B.I want to copy folder A to B.Plz help me

      J Offline
      J Offline
      Joe Smith IX
      wrote on last edited by
      #2

      Hi, Try using FindFirstFile and FindNextFile to enumerate all files in Folder A, then use CopyFile to copy each found file to Folder B. (You can use CreateDirectory to create Folder B if it doesn't exist).

      M 1 Reply Last reply
      0
      • J Joe Smith IX

        Hi, Try using FindFirstFile and FindNextFile to enumerate all files in Folder A, then use CopyFile to copy each found file to Folder B. (You can use CreateDirectory to create Folder B if it doesn't exist).

        M Offline
        M Offline
        MsmVc
        wrote on last edited by
        #3

        Thanks for reply can you give me some example? Plz help me

        J 1 Reply Last reply
        0
        • M MsmVc

          Thanks for reply can you give me some example? Plz help me

          J Offline
          J Offline
          Joe Smith IX
          wrote on last edited by
          #4

          Try "Search Messages" for FindFirstFile in this site. There were quite a few examples.

          1 Reply Last reply
          0
          • M MsmVc

            Hi All How can i copy Folder complete data to Folder?I have a source folder A which have 10 files and 2 folder.My destination folder B.I want to copy folder A to B.Plz help me

            _ Offline
            _ Offline
            _Superman_
            wrote on last edited by
            #5

            There is an API called SHFileOperation using which this is possible.

            «_Superman_»

            1 Reply Last reply
            0
            • M MsmVc

              Hi All How can i copy Folder complete data to Folder?I have a source folder A which have 10 files and 2 folder.My destination folder B.I want to copy folder A to B.Plz help me

              S Offline
              S Offline
              SandipG
              wrote on last edited by
              #6

              Please read your this post[^] you already know the solution.. I hope it helps..

              Regards, Sandip.

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups