You should be careful with assumptions... as each manufacturer will
determine what these 'defaults' will be. I have found it far more reliable
to present the user with a file dialog that asks them to point to file store
on their device. This provides the best results for all hardware, all
potential storage locations and is user proof...
Rick Winscot
www.zyche.com
"CottonTech Pty Ltd" <(E-Mail Removed)> wrote in message
news:049701c3b551$64d49e20$(E-Mail Removed)...
>
> >-----Original Message-----
> >How can I detect CF card or SD card is exist in PDA
> Device?
> >
> I use a simple function using the Directory keyword
> (probably smoother ways but this works. Written in C#:
>
> using System;
> using System.IO;
>
> private void AssumeStorage()
> { // Tests for \Storage Card and \Flash File Store,
> bool b = false;
> b=Directory.Exists("\\Storage Card");
> if (b)
> // Handle existance of storage card"
> else
> b=Directory.Exists("\\Flash File Store");
> if (b)
> {
> // Handle existance of Flash File Store"
> }
> else
> {
> // Handle no CF storage
> }
> }