会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Join DotNet
2005年9月20日
用C#得到一个目录下所有文件的大小
摘要: public long GetDirectoryLength(string dirPath){if(!Directory.Exists(dirPath))return 0;long len=0;DirectoryInfo di=new DirectoryInfo(dirPath);foreach(FileInfo fi in di.GetFiles()){len+=fi.Length;}Direc...
阅读全文
posted @ 2005-09-20 22:11 Jason.Yi
阅读(1770)
评论(3)
推荐(0)
编辑
公告
导航
博客园
首页
新随笔
新文章
联系
订阅
管理