How do I copy a folder and all subfolders and files in .NET? [duplicate]
问题 This question already has answers here : Closed 8 years ago . Possible Duplicate: Best way to copy the entire contents of a directory in C# I'd like to copy folder with all its subfolders and file from one location to another in .NET. What's the best way to do this? I see the Copy method on the System.IO.File class, but was wondering whether there was an easier, better, or faster way than to crawl the directory tree. 回答1: Well, there's the VisualBasic.dll implementation that Steve references,