Folders go missing

A

a-----c

I have a user with a strange situation. They have my app installed on
their iPaq which creates various folders for them depending on where
they installed the app.

Typical folders are
\Storage Card\appfolder
\Storage Card\appfolder\images
\My Documents\appbackup

These folders do actually exist but according to the app itself (which
created them in the first place) they dont. The problem comes to light
when the user needs to access the images directory. This directory is
used to hold images displayed in the app but are user defined. i.e the
user can add images to this directory to be viewed in the app. So now
when they do add images, the app doesnt see them because it cant even
see the folder. To prove this I created a simple page that prints out
each path and colours the path name green/red if it exists or not. Now
when this page loads on the users device each folder is coloured red,
even the appfolder !

Any idea why the app might not think these folders exist. Could it be
that the storage card needs a 'name/alias' to be accessed properly.
'Storage Card' was the name given to the app when it enumerated the
GetFileSystemInfos() collection.

Thanks
 
A

a-----c

I think I have found the solution.

When looking to see if the folder exists or not, 'storage card
\appfolder\' returns false, but 'storage card\appfolder' returns true
BUT only on some devices (in particular the iPaq)

Dont know why but there you go!!
 
P

Paul G. Tobey [eMVP]

Make sure that you don't forget the leading \. *All* paths on Windows CE
devices should be full paths, no relative paths! This problem might easily
be because of where your application is located when you're running it, as
well as a goofed-up folder name format.

Paul T.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top