C# .Net 获取系统盘符
1、使用.net管理对象(引入System.Management) public static List<string> getDisk() { WqlObjectQuery wmiquery = new WqlObjectQuery("select * from Win32_LogiCalDisk"); ManagementObjectSearcher wmifind = new ManagementObject.