Here is a small free dll (8.5 kb) that will return the size of a folder. It is very fast even on large folders. You can use Luacom to get the size of a folder but I found that it failed on large folders. Also Luacom will add 288 kb to your app where as this dll only adds 8.5 kb.
Use the link below to go to the xDialog site where you can download an AMS project which contains the dll and shows how to use it.
Download

