0

Anyone know what function will copy contents from one folder to another, I know the source folder and the destination aso I dont have to use the mkdir. Any Ideas?

3
Contributors
2
Replies
3
Views
11 Years
Discussion Span
Last Post by iamthwee
0

Depends on operating system. If you are using MS-Windows, you can use win32 api function CopyFile() -- see MSDN for details. To my limited knowledge of *nix, I don't think *nix compilers have a similary function. You might also check the Boost libraries to see if it has a portable function. If not, then write your own or use systenm() function to use the system's cp or copy function.

0

Depends on operating system. If you are using MS-Windows, you can use win32 api function CopyFile() -- see MSDN for details. To my limited knowledge of *nix, I don't think *nix compilers have a similary function. You might also check the Boost libraries to see if it has a portable function. If not, then write your own or use systenm() function to use the system's cp or copy function.

Shudn't B a problem if they're no sub directories in the folder. If there are recursion is ur friend.

U cud just use fstream and copy each file using binary to the other folder. :surprised

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.