Find Storage Card name

  • Thread starter Thread starter Jon Credit
  • Start date Start date
J

Jon Credit

I have searched the archives and see lots of discussion on
this but I have really found a definitive answer.
Background...
I am testing with two Pocket PC units, an iPAQ and a Dell
Axim. The name of the storage card folder on the iPAQ is
\Storage Card and on the Dell it's \SD Card

I found this code in the newsgroups archives:
==============================================
Dim rootDir As DirectoryInfo = New DirectoryInfo("\")
Dim attrStorageCard As FileAttributes =
(FileAttributes.Directory Or FileAttributes.Temporary)
Dim fsi As FileSystemInfo
For Each fsi In rootDir.GetFileSystemInfos()
If ((fsi.Attributes And attrStorageCard) =
attrStorageCard) Then
MessageBox.Show(fsi.FullName, fsi.Name)
End If
Next
MessageBox.Show("Done")
==============================================
(I apologize for the formatting, I am on a browser)
This code does find the storage card but it also finds the
built in storage. On the iPAQ it finds both \Storage Card
and \iPAQ File Store
and on the Dell it finds \SD Card and \Built-in Storage

I traced into the FileSystemInfo object and couldn't
really see anything that would distinguish the built in
storage from the memory card.

Is there a way to (just) get the name of the storage card?

My current workaround is to put an xml file in the Program
FIles folder that tells my applications what the name of
the storage card folder is, but I would like to make this
a little more foolproof if possible.

TIA
--Jon
 
The thing is that built-in storage for all intents and purposes IS a flash
memory card. It is presented as one of the choices when installing apps and
in a file explorer as the external storage option
 
Back
Top