Copy a directory to a different drive

前端 未结 6 723
小鲜肉
小鲜肉 2020-12-18 04:21

How do I copy a directory to a different drive in C#?

6条回答
  •  旧时难觅i
    2020-12-18 04:28

    FileSystem.CopyDirectory(sourceDir, destDir);
    

    FileSystem.CopyDirectory is in a VB namespace and assembly, but that probably doesn't matter.

提交回复
热议问题