DriveInfo.GetDrives()返回fantom驱动器。 [英] DriveInfo.GetDrives() returns fantom drives.

查看:150
本文介绍了DriveInfo.GetDrives()返回fantom驱动器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



我只有一个微型SDHC卡连接到系统。当我运行使用DriveInfo.GetDrives()的应用程序时,除了列出四个驱动器的microSDHC之外,我有关于所有驱动器的正确结果!

结果如下:

Hi,
I have only one micro SDHC card attached to the system. When I run application that use "DriveInfo.GetDrives()" I have the correct result about all the drives except for microSDHC that lists four drives!
Here is the result:

Drive C:\
  File type: Fixed
  Volume label: System
  File system: NTFS
  Available space to current user:   158215012352 bytes
  Total available space:             158215012352 bytes
  Total size of drive:               235562594304 bytes 
Drive D:\
  File type: Removable
Drive E:\
  File type: Fixed
  Volume label: Working
  File system: NTFS
  Available space to current user:   513091203072 bytes
  Total available space:             513091203072 bytes
  Total size of drive:               514223763456 bytes 
Drive F:\
  File type: CDRom
----------------------------
Drive G:\
  File type: Removable
  Volume label: MicroSDHC  (O.K. only one is atached).
  File system: NTFS
  Available space to current user:     3919810560 bytes
  Total available space:               3919810560 bytes
  Total size of drive:                 3968856064 bytes 
Drive H:\                 (??)
  File type: Removable
Drive I:\                 (??)
  File type: Removable
Drive J:\                 (??)
  File type: Removable
-----------------------------

推荐答案

DriveInfo.GetDrives()只返回驱动器管理控制台中可以找到的驱动器。

所以这不是问题。这只意味着您使用的SD卡读卡器使用多个驱动器号(准确地说是4个),通常每个存储卡格式一个,设备可以处理。



因此,在这种情况下,只有驱动器G对应于您的SDHC卡;其他三个只是存储卡读卡器中的空存储卡插槽。



希望这会有所帮助。
DriveInfo.GetDrives() just returns the drives that you can find in drives management console otherwise.
So that is not an issue. It just means that the SD card reader you are using uses several drive letters (4, to be precise), usually one for each memory card format that the device can handle.

So, in this case, only drive G corresponds to your SDHC card; the three others are just empty memory card slots in your memory card reader.

Hope this helps.


这篇关于DriveInfo.GetDrives()返回fantom驱动器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆