Something else came up

Code:

$e = "%userprofile%\Mijn documenten"
$mydocs = dirplus($e, "/s")
for each $file in $mydocs
$docfiles=$docfiles+$file.size
next
? $docfiles + " used by My Documents



Now then, the code seems to work because I'm getting some numbers but they are wrong. When I do a dir /s in my documents, I get 147.411.122 bytes in 133 files. However, when I run the script I get 178.325.888 bytes (the loop runs 87 times which makes sense because when I subtract the number of folders that reside under my documents, I end up with that number).

Anyone has a clue why kix counts 170+ MB data and Windows only 140?

What I want to do with this script is to get an idea how much space is in use by our users profiles on the local harddisk so we can plan migrating this data to a fileserver.

Henk