摘要:
用C#实现获取文件夹大小的源代码 当然了都需要引入System.IO这个命名空间 第一个: public static long GetDirectoryLength(string dirPath) { //判断给定的路径是否存在,如果不存在则退出 if (!Directory.Exists(dirPath)) return 0; long len = 0; //定义一个DirectoryInfo... 阅读全文
posted @ 2008-06-23 19:23
萝卜皮
阅读(8723)
评论(1)
推荐(0)

浙公网安备 33010602011771号