Gérard Lochon wrote:
> And if WSH isn't needed, is there another way ? (ie API from file 
> information system ...)
> 
> Gérard.

Gérard,

No, there's no API, the closest APIS are FindFirstFile and FindNextFile, 
and a loop through the folder, an example (sorry, VB code), is shown 
here: http://vbnet.mvps.org/index.html?code/fileapi/getdirectorysize.htm


another alternative could be to use DOS:

!Dir c:\windows > c:\tmp\windir.txt
nI = Alines(aFolderSize, Filetostr("c:\tmp\windir.txt"))
?"Folder Size: " + Substr(aFolderSize(nI-1),Rat(" ", aFolderSize(nI - 
1), 2))



HTH



Saludos
Jaime Vasquez
Guatemala, C.A.


_______________________________________________
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.

Reply via email to