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. _______________________________________________ Post Messages to: ProFox@leafe.com Subscription Maintenance: http://leafe.com/mailman/listinfo/profox OT-free version of this list: http://leafe.com/mailman/listinfo/profoxtech ** All postings, unless explicitly stated otherwise, are the opinions of the author, and do not constitute legal or medical advice. This statement is added to the messages for those lawyers who are too stupid to see the obvious.