nResult = XCopyFile(strSrcDir ^ "*.*", strDestDir ^ "*.*", COMP_NORMAL) but nResult was always -2147024773. Finally, out of frustration I changed it to
nResult = CopyFile(strSrcDir ^ "*.*", strDestDir ^ "*.*") and it worked...
What am I doing wrong with XCopyFile. I may still need it because there might be subdirectories in the future that need to be copied. There is nothing special about the files (read-only, locked, etc.)