How can I read all files from mtp disk? I think could be easy as it's, but...
When I access into the drive using explorer it shows me the path as: "This computer/my phone/Internal storage/Dcim" I advice I can get acces if I write the path directly in files explorer in the same way: "This computer/my phone/Internal storage/Dcim"
But when I try to list the files from this vb code:
Dim stringpat As String = "This computer\my phone\Internal storage\Dcim"
For Each foundFile As String In My.Computer.FileSystem.GetFiles(stringpat)
ListBox1.Items.Add(foundFile)
Next
the program tries to do it, but returns: System.IO.DirectoryNotFoundException: 'cannot be found part of access path
showing common path like:
'C:\Users\PC\Desktop\proyect\proyect\bin\Debug\This computer\My phone\Internal storage\Dcim\'
Obviously My.Computer.FileSystem.GetFiles
adds the undesired part of the path...
How can I access into a path that is not a common path like "C:", just start as I show?