There are at least two methods for copying a file in C/C++: procedurally and using ShellExecute. I can post an explanation of each if needed but I’m going to assume that these methods are known. Is there an advantage to using one method over the other?
Share
Procedurally will give you better error checking/reporting and will work cross-platform — ShellExecute is Windows API only.
You could also use a third-party filesystem library to make the task less annoying — boost::filesystem is a good choice.