C# 获取本地磁盘驱动器、U盘、共享目录所在驱动器的大小

string filePathRoot = Path.GetPathRoot(fileName); if (!filePathRoot.EndsWith("\\")) { filePathRoot = filePathRoot + "\\"; } DriveType driveType = (Dri

posted on 2023-06-07 15:24  wu.g.q  阅读(246)  评论(0编辑  收藏  举报

导航