On 7/11/10 6:50 PM, in article AANLkTilxjfmegCAHrXnOKOPLPcDMXXabMgCLA9_FXH36@mail.gmail.com, "Daniel Trebbien" wrote:
Hi,
I am programming on a widows system. Is it possible to list all drives available in a system with boost::filesystem library or any other boost library?
I have gone through boost::filesystem documentation, but could not find any :(
Thanks a lot, Lloyd
Hi Lloyd,
Because the concept of drives is unique to Windows, Boost Filesystem does not implement such a function. Boost Filesystem and all Boost libraries are designed to be cross-platform.
To obtain a list of drives, you should instead use the Windows API function `GetLogicalDriveStrings`: http://msdn.microsoft.com/en-us/library/aa364975.aspx
Daniel
Doesn't OS X have the concept of separate Drives? They are all just mounted in /Volumes Mike Jackson