日期:2014-05-18 浏览次数:20959 次
DirectoryInfo rootDir = new DirectoryInfo(@"\"); FileAttributes attrStorageCard = FileAttributes.Directory | FileAttributes.Temporary; foreach( FileSystemInfo fsi in rootDir.GetFileSystemInfos() ) if ( (fsi.Attributes & attrStorageCard) == attrStorageCard ) //Found storage card