Don't copy — it can take too much time and even failed due to insufficient space of the disk. Instead, rename whole thing using
int rename ( const char * oldname, const char * newname )
. See
http://www.cplusplus.com/reference/clibrary/cstdio/rename/[
^].
On Windows 7, you may need to run your program with elevated privileges as administrator; if you just log in as administrator, this is not enough (and not even required). Using a directory like "c:\mapper\" is bad, it won't be legal at Windows 7; you need to work with "special" directories under user accounts.
This is a good description of options you can use:
http://www.sevenforums.com/tutorials/11841-run-administrator.html[
^].
—SA