摘要: 61.文件夹移动到整合操作 FolderDialog aa = new FolderDialog(); aa.DisplayDialog(); if (aa.Path != "") { string filename = Path.GetFileName(%%1); string path=(aa.Path.LastIndexOf("\") == aa.Path.Length - 1) ? aa.Path : aa.Path + "\"; if (Path.GetPathRoot(%%1) == Path.GetPathRoot(aa 阅读全文
posted @ 2012-03-22 23:56 programming lover 阅读(512) 评论(0) 推荐(0) 编辑
摘要: 1.创建文件夹//using System.IO;Directory.CreateDirectory(%%1);2.创建文件//using System.IO;File.Create(%%1);3.删除文件//using System.IO;File.Delete(%%1);4.删除文件夹//using System.IO;Directory.Delete(%%1);5.删除一个目录下所有的文件夹//using System.IO;foreach (string dirStr in Directory.GetDirectories(%%1)){DirectoryInfo dir = new D 阅读全文
posted @ 2012-03-22 23:54 programming lover 阅读(915) 评论(0) 推荐(4) 编辑