Page 1 of 1 1
Topic Options
#157440 - 2006-02-17 08:39 PM GetDirSize() or GetDirectorySize()
dataspike Offline
Getting the hang of it

Registered: 2005-03-09
Posts: 89
Loc: San Diego, CA
I need to verify the contents of a directory based on the size and or number of files in a given directory. Anyone have any ideas how to obtain such information?

For example:
Code:


$DirSize = GetDirSize('C:\Windows\System32')
If $DirSize < 1024
...
EndIf



Thanks for your help guys.
Chris

Top
#157441 - 2006-02-17 08:54 PM Re: GetDirSize() or GetDirectorySize()
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Perhaps if you included the GetDirSize() UDF we could help.
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157442 - 2006-02-17 08:59 PM Re: GetDirSize() or GetDirectorySize()
Les Offline
KiX Master
*****

Registered: 2001-06-11
Posts: 12734
Loc: fortfrances.on.ca
Oh, wait... I get it. You don't have a UDF. You only have pretend UDF.
Am I right?
_________________________
Give a man a fish and he will be back for more. Slap him with a fish and he will go away forever.

Top
#157443 - 2006-02-17 09:00 PM Re: GetDirSize() or GetDirectorySize()
Allen Administrator Online   shocked
KiX Supporter
*****

Registered: 2003-04-19
Posts: 4562
Loc: USA
See if this will do it... fnGetFolderProp()
Top
#157444 - 2006-02-17 09:21 PM Re: GetDirSize() or GetDirectorySize()
dataspike Offline
Getting the hang of it

Registered: 2005-03-09
Posts: 89
Loc: San Diego, CA
Quote:

See if this will do it... fnGetFolderProp()



Works like a champ! Thanks!

Top
Page 1 of 1 1


Moderator:  Glenn Barnas, NTDOC, Arend_, Jochen, Radimus, Allen, ShaneEP, Ruud van Velsen, Mart 
Hop to:
Shout Box

Who's Online
1 registered (Allen) and 1172 anonymous users online.
Newest Members
StuTheCoder, M_Moore, BeeEm, min_seow, Audio
17884 Registered Users

Generated in 0.061 seconds in which 0.032 seconds were spent on a total of 12 queries. Zlib compression enabled.

Search the board with:
superb Board Search
or try with google:
Google
Web kixtart.org