Directory.GetFiles(@"\Databases", "*.*") throws directory not foun

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Can anyone tell me why I am not getting a list of files in this directory or
is the path different for that system folder?

Thanks,

Kenneth Lewis
 
Yes it does anyone else can tell me why I am not getting a list of files here
for this system folder?
 
I'm going to go out on a limb and guess it's because you're looking at the
data store and you need to use the database APIs to enumerate and open them.

-Chris
 
Yes, Databases is a virtual folder, which shows up through ActiveSync but
doesn't actually exist in the filestore. To get the equivalent functionality
you need to mount the object store and enumerate the databases it contains.
You'll need to P/Invoke CeMountDBVol, CeFindFirstDatabase,
CeFindNextDatabase and associated structures.

Peter
 
Back
Top