68d Subj : Re: directory trees To : borland.public.cpp.borlandcpp From : "Ed Mulroy [TeamB]" Date : Mon Apr 12 2004 05:31 pm While ShFileOperation might be able to do a deep copy of everything in a directory tree that is when it copies from one place on the disk to another. It does not accept a list of things to create. The underlying operating system has no facilities for creation of the set of items. Each directory and each file is individually created. It is a reasonably easy task to cycle through and create each. Just make a set of functions or a class which scans a directory tree and assembles the file and directory names along with the file sizes. Make a copy of that set of functions and have it create that same set. Now you not only have the creation function but you also have something that will automatically add the new file you've put into the original directory tree to the list it finds. .. Ed > mike wrote in message > news:407ae2f1$1@newsgroups.borland.com... > > i was writing my own installer program for my app, but > i ran into a roadblock.i need to copy over directory trees > which contains both files and directories. i am using pure > win32 (no OWL or MFC) and there is no CopyDirectory (). > there is a CopyFile (), but the tree that i want to copy > has a lot of files and i don't want to do it that way. plus > when i add a file to the tree i wil have to remember to > update the intstaller. i was wondering if there is a good > way to do this? the only other way i could think of was > to spawn a new process and call xcopy to do the > directory copy. any ideas? . 0