that code wont work... i have tried it before.. $findfile with the third parement as 0 will result in mirc showing how many files are in that directory..

this is the script I tried before...

alias sizechecker {
set %size.time $ctime
set %size.total 0
set %size.file 0
:next
set %size.file $calc(%size.file + 1)
if ($findfile(d:\,*,%size.file) == $null) { goto end }
set %size.total $calc(%size.total + $file($findfile(d:\,*,%size.file)).size)
goto next
:end
//echo ended $asctime($calc($ctime - %size.time),nn - ss) ago
//echo sharing $calc($calc($calc($calc(%size.total)/1024)/1024)/1024)/1024) GB
}

this works but seems to crash on folders with a lot of files in them..The script shouldnt take a lot of time to exacute either so probebly what I am looking for is a dll...