不用遍历整个目录?
---------------------------------------------------------------
项目->引用 浏览 COM组件 Microsoft Scripting Runtime
添加引用:
下代码:
Scripting.FileSystemObject fso=new Scripting.FileSystemObjectClass();
MessageBox.Show (fso.GetFolder("D:\\ReadPix" ).Size.ToString() ) ;