Hello MCA,

I tried the latest version u posted, this one is erroring too, and I can't find a kixdebug.txt file
on C:\ either.
I am using W2K SP2 as test, but our clients are NT4, W9x and W2k. Kix version is 2001 4.00 RC1.

I appreciate your explanations alot, I have learnd. And yes, I realized that I needed the last line in the TempFile before you told in your post. Just a funny way to grab the last line. Maybe there is a unix tool "tail" available for Windows. I will search for that. Would make the loop unnessary.

And believe me, Al the code you and Jens posted didnt run well. Erroring or the output is not what I was looking for. But on the other hand, I am not a programmer, so I can be doing things wrong here.

I have searched the BB again for usefull code and came along this peace:

code:
  
Function FolderSize($folder)
DIM $fso,$fold
$folderSize = -3
if exist($folder) = 1
$FSO = createobject("scripting.filesystemobject")
$fold = $fso.getfolder($folder)
$FolderSize = $fold.size
exit(0)
else
exit(3)
endif
endfunction

$catch=(FolderSize("h:\"))
$mbytes=$catch/1048576

This works like a dream, It uses objects as I could see. Now I don't know anything about objects
and I havnt tested it with other Os's. Will do that tommorow.

And I wanted also to make this work with a progress indicator. Only thing, I can't solve that. I used this function for it.

code:
  

Function ShowSpinner($Row,$Column)

; Progressie animatie.
If Not VarType($_Spin)
Global $_Spin
EndIf

AT($Row,$Column)
Select
Case $_Spin = 2
'/'
$_Spin = 3
Case $_Spin = 3
'-'
$_Spin = 4
Case $_Spin = 4
'\'
$_Spin = 1
Case 1
'|'
$_Spin = 2
EndSelect
EndFunction

Personally I think this leaks memory and fooks the CPU 100%.

But I tryed this indicator as follows.
code:
  
Function FolderSize($folder)
DIM $fso,$fold
$folderSize = -3
if exist($folder) = 1
$FSO = createobject("scripting.filesystemobject")
$fold = $fso.getfolder($folder)
$FolderSize = $fold.size
exit(0)
else
exit(3)
endif
endfunction

shell $catch=(FolderSize("h:\"))
do
sleep 0.5

ShowSpinner(10,33)

until $catch > 0

$mbytes=$catch/1048576

? $mbytes

sleep 10
exit

But this doesnt work. :|

Anyway, Iam off to hooome, been a long day.

p.s. Love the BB [Smile]

Cheers,
rel.
_________________________
This is Unix Country. On a quiet night you can hear NT reboot.