巨快的速度求得某一个目录的大小
2008-03-08 12:44:34 来源:WEB开发网核心提示:用Scripting Runtime // #include "comobj.hpp" Variant fs, folder; Function GetFolder("GetFolder"); PRopertyGet GetSize("size"); fs =
用Scripting Runtime
//------------------------------------------------------------
#include "comobj.hpp"
Variant fs, folder;
Function GetFolder("GetFolder");
PRopertyGet GetSize("size");
fs = Variant::CreateObject("Scripting.FileSystemObject");
folder = fs.Exec(GetFolder << "D:\\Winnt");
ShowMessage(folder.Exec(GetSize));
更多精彩
赞助商链接