#168804 - 2006-10-03 08:34 PM
Re: GETFILESIZE() wildcard support
|
masken
MM club member
   
Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
|
Getfilesize("%WINDIR%\KB*.log") for example 
or an even better one but isn't supported in any other wildcard-functions I guess:
Getfilesize("%WINDIR%\KB######.log")
Edited by masken (2006-10-03 08:36 PM)
|
Top
|
|
|
|
#168806 - 2006-10-04 09:12 AM
Re: GETFILESIZE() wildcard support
|
masken
MM club member
   
Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
|
you're absolutely right as usual doc
Edited by masken (2006-10-04 09:13 AM)
|
Top
|
|
|
|
#168808 - 2006-10-05 03:57 PM
Re: GETFILESIZE() wildcard support
|
Richard H.
Administrator
   
Registered: 2000-01-24
Posts: 4946
Loc: Leatherhead, Surrey, UK
|
Quote:
total filesize of more than one file.
|
Top
|
|
|
|
#168809 - 2006-10-05 06:27 PM
Re: GETFILESIZE() wildcard support
|
Bryce
KiX Supporter
   
Registered: 2000-02-29
Posts: 3167
Loc: Houston TX
|
hmm, interesting request...
a workaround... 
Code:
$kixFiles = dirplus('c:\kix','/a-d /s /f kix') for each $file in $kixfiles $totalSize = $totalSize + $file.size next
? $totalSize
|
Top
|
|
|
|
#168810 - 2006-10-05 09:06 PM
Re: GETFILESIZE() wildcard support
|
NTDOC
Administrator
   
Registered: 2000-07-28
Posts: 11625
Loc: CA
|
Bryce I know you're busy but...
Quote:
I won't bother to post a work around as I'm sure you already know how to do it
|
Top
|
|
|
|
#168814 - 2006-10-13 05:51 PM
Re: GETFILESIZE() wildcard support
|
masken
MM club member
   
Registered: 2000-11-27
Posts: 1222
Loc: Gothenburg, Sweden
|
Changed the topic to: GETFILESIZE() >>> GETSIZE() with wildcard support
Really, it would be great to have a built-in function that could get the size of any path, with or without wildcards. Including both files, folders, or even drives... This would also go beyond the FileSystemObject's possibilities.
In this thread: http://www.kixtart.org/ubbthreads/showflat.php?Cat=0&Number=143492
Ruud mentions folder support, but it doesn't seem to be working in 4.53?
Edited by masken (2006-10-13 06:04 PM)
|
Top
|
|
|
|
Moderator: Lonkero, ShaneEP, Jochen, Radimus, Glenn Barnas, Allen, Ruud van Velsen, Mart
|
0 registered
and 1739 anonymous users online.
|
|
|