main logo
Subject: Re: Directory Size
Author: Jaime Vasquez
Posted: 2006/11/30 00:38:47
 
View Entire Thread
New Search


Kevin O\'Shea wrote:
> Does anyone know of a quick way to get the size of a directory in
> FoxPro? I have come across a few ways to loop through the files in
> directories and subdirectories and tally up the size, but there must be
> a quick way to get the directory size?!
>


oFs = createobject("Scripting.FileSystemObject")
oDir = ofs.GetFolder("C:\\windows")
?odir.Size




HTH



Jaime Vasquez.




 
©2006 Jaime Vasquez
<-- Prior Message New Search Next Message -->