#22280 - 2002-05-29 06:02 PM
Re: Hello, help with this search script.
|
^REL^
Fresh Scripter
Registered: 2001-06-11
Posts: 30
Loc: Netherlands
|
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
Cheers, rel.
_________________________
This is Unix Country. On a quiet night you can hear NT reboot.
|
|
Top
|
|
|
|
Hello, help with this search script.
|
^REL^
|
2002-05-28 03:53 PM
|
Re: Hello, help with this search script.
|
Sealeopard
|
2002-05-28 03:58 PM
|
Re: Hello, help with this search script.
|
^REL^
|
2002-05-28 04:13 PM
|
Re: Hello, help with this search script.
|
MCA
|
2002-05-28 05:28 PM
|
Re: Hello, help with this search script.
|
Sealeopard
|
2002-05-28 05:33 PM
|
Re: Hello, help with this search script.
|
^REL^
|
2002-05-30 12:01 AM
|
Re: Hello, help with this search script.
|
MCA
|
2002-05-30 12:13 AM
|
Re: Hello, help with this search script.
|
^REL^
|
2002-05-30 12:40 AM
|
Re: Hello, help with this search script.
|
MCA
|
2002-05-29 02:54 PM
|
Re: Hello, help with this search script.
|
MCA
|
2002-05-29 03:08 PM
|
Re: Hello, help with this search script.
|
MCA
|
2002-05-29 03:51 PM
|
Re: Hello, help with this search script.
|
^REL^
|
2002-05-29 06:02 PM
|
Re: Hello, help with this search script.
|
BrianTX
|
2002-05-29 06:22 PM
|
Re: Hello, help with this search script.
|
MCA
|
2002-05-29 06:39 PM
|
Re: Hello, help with this search script.
|
BrianTX
|
2002-05-29 08:29 PM
|
Re: Hello, help with this search script.
|
MCA
|
2002-05-29 08:39 PM
|
Re: Hello, help with this search script.
|
DrillSergeant
|
2002-06-03 11:04 AM
|
Re: Hello, help with this search script.
|
MCA
|
2002-06-05 05:10 PM
|
|
Moderator: Jochen, Allen, Radimus, Glenn Barnas, ShaneEP, Ruud van Velsen, Arend_, Mart
|
0 registered
and 2220 anonymous users online.
|
|
|