--- In [email protected], "chunwaihome" <chunwaih...@...> wrote:
>
> --- In [email protected], "brucexs" <bswitzer@> wrote:
> >
> > --- In [email protected], "chunwaihome" <chunwaihome@> 
> wrote:
> > >
> 
> > > 
> > > 4)could pp return the size of folder?
> > > Now i use du tools on
> > > http://technet.microsoft.com/en-us/sysinternals/bb896651.aspx
> > 
> > 
> > Only by script with file.allfiles or by fancy use of menu folder
> > with "run all" option which runs a command to accumlate file
> > sizes into a global variable. Either approach is likely to be
> > slow for larger folders.
> 
> THX Your reply
> I have tried to use file.allfiles to check folder size
> local bb
> file.allfiles("u:/incoming","bb = bb + bb(_file_)","","1")
> debug&(bb)
> But it does not accurate, what is wrong? And do you give more
> hits how to do about "menu folder with run all" I really can't
> find that setting 


This works, but as warned it takes awhile.

local fsize
local mypath=inputfolder
file.allfiles(mypath,"fsize+=file.size(_file_)", 1, 1, 1)
messagebox("OK", fsize, mypath)

Regards,
Sheri

Reply via email to