Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Easy Way to copy everything inside a folder to another?

Status
Not open for further replies.

Insider1984

Technical User
Joined
Feb 15, 2002
Messages
132
Location
US
Lets say i have:

D:\parts

and inside D:\Parts I have:

D:\parts\folder1
D:\parts\folder2
D:\parts\image.bmp

folders themselves also would have other folders and files as well.

I know of a really really round about way in C but I'm hoping that Visual C++ gives me a quick easy way to just do a copy of the entire contents of a folder and place everything into a new folder.

Thanks for the help.



=====================
Insider
4 year 'on the fly' programmer
C++ Basic Java
 
Well, C++ is a language, not an API, and consequently doesn't provide any copy-dir-structure functionality as such.


You can use the CopyFile that is part of the Windows SDK, but you have to manually recurse any dir strucuture yourself.


/Per
Nerdy signatures are as lame as the inconsistent stardates of STTNG.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top