This question is a recreation of the original question. There were several valid answers and the originlal was deleted in order to propagate the points out to the Experts that assisted.
-----original question text------
From: brockway Date: Wednesday, June 23 1999 - 09:20AM CDT
Status: Answered.This question is locked until brockway evaluates the answer.
Points: 250 Points
Anybody know how to copy (Duplicate) a directory and all its files and subdirectories? I know about the SHFileOperation API but this adds a directory structure under the new name. For example say I want to make a duplicate of C:\Windows as C:\Windows2. SHFileOperation creates C:\Windows2 then hangs C:\Windows under C:\Windows2 thus:
Whereas wha I'm looking for is:
Essentrially copying the content of the source directory under the new directory.