Dear,

Function in kixtart2001 are simple a piece of code, which make it
possible to create a much easier to read your main script.
Also UDFs can easily reused.

Possible that Bryce can explain why

code:

? GetFolderSize("c:\")
? GetFolderSize("c:\work")
exit

function GetFolderSize($path)
DIM $fso, $fold
$GetFolderSize = -3
if exist($path) = 1
$FSO = createobject("scripting.filesystemobject")
$fold = $fso.getfolder($path)
$GetFolderSize = $fold.size
exit(0)
else
exit(3)
endif
endfunction



c:\ returns an empty result
and
c:\work returns the actual value.
greetings.
_________________________
email scripting@wanadoo.nl homepage scripting@wanadoo.nl | Links | Summary of Site Site KiXforms FAQ kixtart.org library collection mirror MCA | FAQ & UDF help file UDF kixtart.org library collection mirror MCA | mirror USA | mirror europe UDF scriptlogic library collection UDFs | mirror MCA