title: How to use C++ to Copy A Directory
body: <p>I have made a backup program using c++, but it uses the System() command to batch copy files.</p>
  
  <p>I am looking for a way to copy an entire directory (this does not need to create any directories, just copy them). Or alternatively, copy everything within a directory.</p>
  
  <p>For example, I want to copy <code>C:\Users\ to E:\Backup\ Or C:\Users\* to E:\Backup\</code>.</p>
  
  <p>If possible could you include an example in your answer.</p>
  
  <p>Thanks a lot!</p>