I'm trying to copy all files and folders in one directory to another directory. The problem is that "CopyFolder" also copies the original directory. I need to have all the files and folders to be copied to the root of the other directory. For instance, I need to copy everything in C:\MyStuff to the root of E:\ (without the MyStuff folder).
I have the following code:
Dim MyObj 'As New FileSystemObject
Set MyObj = CreateObject("Scripting.FileSystemObject")
If MyObj.FolderExists(startpath) Then
MyObj.CopyFolder startpath, destpath
But as I said, this method copies the "MyStuff" folder also, and not just the contents.