Here's a quick way to do so in .NETCF:
public static List<string> GetStorageCards()
{
var list = new List<string>();
var root = new DirectoryInfo("\\");
foreach (DirectoryInfo directory in root.GetDirectories())
{
if (FileAttributes.Temporary == (directory.Attributes & FileAttributes.Temporary))
list.Add(directory.Name);
}
return list;
}
1 comment:
thanks, helpful article.
Post a Comment