Copy Sub directories to directory
问题 Referencing this question/code: How do I copy a folder and all subfolders and files in .NET? I'm trying to copy a buntch of sub directories to a different directory. I'm wanting to update this code: Dim fso As System.Object = New System.Object fso = CreateObject("scripting.filesystemobject") fso.copyfolder(sour, dest) However I'm getting this error: System.IO.DirectoryNotFoundException: Could not find a part of the path 'C:\Temp\Summer2011\Newfolder\Copy of New Text Document.txt'. at System