Results 1 to 3 of 3

Thread: Open file on storage card

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Location
    Devon - UK
    Posts
    214

    Open file on storage card

    How can I open and read a folder/files on a Pocket PC storage card using 2005?

  2. #2
    Frenzied Member
    Join Date
    Oct 2005
    Posts
    1,286

    Re: Open file on storage card

    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...

    Code:
    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
    Pete
    Pete Vickers
    MVP - Device Application Development
    http://www.gui-innovations.com http://mobileworld.appamundi.com/blogs/

  3. #3

    Thread Starter
    Addicted Member
    Join Date
    Apr 2003
    Location
    Devon - UK
    Posts
    214

    Thumbs up Re: Open file on storage card

    Great - thanks for - just what I needed and it works!!!

    regards

    barry

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width