Find the Root Folder Name of the SD Card.
2012-08-01 16:30
330 查看
Find the Root Folder Name of the SD Card.
reference:
http://www.pcreview.co.uk/forums/detect-storage-card-root-folder-name-t1308987.html
void getSdCardPath() { DirectoryInfo rootDir = new DirectoryInfo(@"\"); FileAttributes attrStorageCard = FileAttributes.Directory | FileAttributes.Temporary; ArrayList myAttr = new ArrayList(); foreach( FileSystemInfo fsi in rootDir.GetFileSystemInfos() ) { if ( (fsi.Attributes & attrStorageCard) == attrStorageCard ) { //Found storage card myAttr.Add(fsi.FullName.ToString()); } }
}
reference:
http://www.pcreview.co.uk/forums/detect-storage-card-root-folder-name-t1308987.html
相关文章推荐
- Ubuntu 12.04 Android SDK Failed to create sdcard in the AVD folder.
- Error : Failed to create sdcard in the AVD folder.
- Can't find the name of Intel ICD OpenGL driver
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- Please read “Security” section of the manual to find out how to run mysqld as root!错误解决(转)
- [root@sdzn-cdh01 /]# find . -name 文件名 ---搜索目录位置 whereis 名称
- [ERROR] Fatal error: Please read "Security" section of the manual to find out how to run mysqld as root!
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- mysql多实例配置下,用脚本启动mysql时,出现Please read "Security" section of the manual to find out how to run mysqld as root!
- (转)Ubuntu 64 位下Android开发出现Error : Failed to create sdcard in the AVD folder
- Please read "Security" section of the manual to find out how to run mysqld as root!错误解决
- To find names containing exactly five characters, use “^”and “$”to match the beginning and end of the name, and five instances of “.”in between: mysql
- Ubuntu 64 位 Error : Failed to create sdcard in the AVD folder.
- the server has disconnected with an error. server message reads: a protocol error occurred.chang of username or service not allowedroot, (root,ssh-con
- Java EE 6 SDK uninstall 'Could not find the required version of the Java(TM) 2 Runtime Environment'
- 【转载】usr/bin/ld: cannot find -l<nameOfTheLibrary>
- Ch4.5: find the (in-order tranversely) successor of a node in BST.
- Spring启动异常: cvc-elt.1: Cannot find the declaration of element 'beans'
- 解决Fiddler "creation of the root certificate was not successful”的问题
- hbase java.lang.IllegalArgumentException: Could not resolve the DNS name of X.X.X.X:60020