>>I am trying to come up with a single command or algorythm in Visual FoxPro 6.0 to scall all available drives, including sub-folders for files of type, and storing the resulting file list into an array, or a table. This will give me fast access to all files of type, when needed by the main apllication.
>>
>>Anyone have any ideas?
>
>Much of what you want can also be supplied through the Scripting.FileSystemObject. For example, the following returns the drives used:
oFS = CREATEOBJECT('Scripting.FileSystemObject')
>fsoDrives = oFS.Drives
>FOR EACH oDrive IN fsoDrives
> ? oDrive.DriveLetter
>ENDFOR
>The API functions GetLogicalDrives() and GetLogicalDriveStrings() can also be used. The scripting object also has a Folders and Files collection. You can get further information at the MSDN site.
IMHO, the MSDN site was a bit difficult to go through. I really made the FileSystemObject start humming after reading Gene Salley's article in FoxPro Advisor (May or June issue of 1999 I think). As a side note, he had a follow up article on the NetworkObject as well that was excellent. The FSO is probably the best route for get file and drive information in any event.
Oct 31 = Dec 25