>Is there a way of getting the size of subdirectories
>
>I tried
>
>Run dir x:\foxdev\* /s >x:\temp\dirsize.txt
>
>but this will not work from within foxpro
>
>any Ideas please
Try using the WSH Scripting.FileSystemObject; you can rerieve a Folder object using GetFolder and then step through the SubFolders collection to retrieve their sizes:
oFSO = CREATEOBJ('Scripting.FileSystemObject')
oFolder=oFSO.GetFolder('C:\MyFolderWithSubFolders')
FOR EACH oSubFolder IN oFolder
? oSubFolder.Name, oSubFolder.Size
ENDFOR