幕后推手TonyCoder

.NET/CAD二次开发
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2011年9月6日

摘要: Directory类中包含了CreateDirectory、Move和Delete方法,却唯独没有Copy方法,很是费解,下边我们写个类来实现,思路是利用递归把指定文件夹及其子文件夹中的文件复制到目标文件夹中: 1 using System; 2 using System.Collections.Generic; 3 using System.Linq; 4 using System.Text; 5 using System.IO; 6 7 namespace DirectoryCopyAndMove 8 { 9 class DirectoryClass10 {11 ... 阅读全文

posted @ 2011-09-06 11:50 TonyCoder 阅读(1699) 评论(0) 推荐(0)