How can I open and read a folder/files on a Pocket PC storage card using 2005?
Printable View
How can I open and read a folder/files on a Pocket PC storage card using 2005?
Hi,
just use \Storage Card\filename.txt is the easy way. To do it correctly, you need to enumerate the storage cards. Credit this code to Ilya Tumanov...
PeteCode:For Each directory As String In System.IO.Directory.GetDirectories("\") ' Enumerating all subfolders in a root folder...
If ((New System.IO.DirectoryInfo(directory)).Attributes And IO.FileAttributes.Temporary) <> 0 Then ' Picking folders with Temporary attribute set...
Console.WriteLine("Found storage card: {0}", directory)
End If
Next
Great - thanks for - just what I needed and it works!!!
regards
barry