Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Finding the storage card path on WM6

Is there an easy way to find the storage card's path on a Windows Mobile device when there is a storage card and a bluetooth ftp connection?

like image 380
Matt R Avatar asked Sep 02 '08 18:09

Matt R


People also ask

How do I find my SD card path?

If you look at the source code for android. os. Environment you will see that Android relies heavily on environment variables for paths. You can use the "SECONDARY_STORAGE" environment variable to find the path to the removable sd card.

What is the path to my SD card on Android?

The external storage was often a “Secure Digital” (or SD) card. On devices without a physical SD Card, it is often emulated. Traditionally the SD Card is referenced via the file path “/sdcard” for consistency.

How do I access my SD card on my Samsung?

With your microSD card inserted, navigate to and open the My Files app. Find the file(s) you want to move, and then touch and hold the file(s). Tap Move or Copy at the bottom of the screen, and then navigate back to the My Files Home page. Tap SD card - this will only show up if you have a SD card inserted.

How do I access files on my SD card?

If you have an SD card mounted on your device, then you can easily read & write files to the SD card from Office on Android apps. On the Open page, tap This device. Tap SD Card or Documents (SD Card).


1 Answers

The mount point is usually "\Storage Card" but can be localized into other languages or modified by OEMs (some devices use "\SD Card" or other mount points, and some devices support mounting multiple storage media). The best way to enumerate the available cards is to use FindFirstFlashCard and FindNextFlashCard.

Both functions fill in a WIN32_FIND_DATA structure. The most important field is cFileName, which will contain the path to the card's mount point (e.g. "\Storage Card").

Note that the device's internal memory will also be enumerated by these functions. If you only care about external volumes, ignore the case where cFileName is an empty string ("").

Using these functions require you to #include <projects.h> and link with note_prj.lib. Both are included in the Windows Mobile SDKs for WM 2000 and later.

like image 159
Tim Norman Avatar answered Oct 21 '22 15:10

Tim Norman