用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));