摘要: 路径超过260字符,不能采用普通的Copy等函数了。使用如下的代码:/// /// 长文件名的文件拷贝/// /// /// /// [DllImport("kernel32.dll", CharSet = CharSet.Unicode)][return: MarshalAs(UnmanagedType.Bool)]internal static extern bool CopyFile(string source, string target, bool overwrite);public static void Copy(string source, string t 阅读全文
posted @ 2014-03-31 15:38 sherlock99 阅读(988) 评论(0) 推荐(0) 编辑