How can I get list of logical drives in C++? I know that for Windows in C# is a function System.IO.DriveInfo.GetDrives()
, but that's Windows only solution. Is there any multiplatform way? I went through a Boost::Filesystem documentation, but found nothing.
C# and .Net are not just for Windows any more. The DriveInfo Class is part of .NET Standard 2.0, and so is available cross-platform with .NET Core 2.0.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.