here is a way using the diruse.exe command from the NT resource kit.

code:

$path = "\\houston\@userid$$"
$tempfile = "temp.dat"
shell '%comspec% /c diruse $path | find /i "total" > $tempfile'
$q = open(1,"$tempfile",2)
$q = readline(1)
$dirsize = readline(1)
$q = close(1) del "$tempfile"
$dirsize = val(substr("$dirsize",1,17))

? "the Directory size of $path = $dirsize"


Bryce