I made a backup program using C ++, but it uses the System () command to batch copy files.
I am looking for a way to copy the entire directory (you do not need to create any directories for this, just copy them). Or, conversely, copy everything to a directory.
For example, I want to copy C:\Users\ to E:\Backup\ Or C:\Users\* to E:\Backup\ .
If possible, you can include an example in your answer.
Thanks a lot!
source share