I am sure I have used the equivalent function in .NET to do this but on Visual C++ 6 it doesn't like me trying to copy files using a wildcard to a new directory.
Like:
::CopyFile("C:\\test\\test*.txt", "C:\\new\\" FALSE);
Does this not work in VC6? If not what alternatives are there?