It's not really clear what you're trying to do, so here are some general pointers:
- Windows CE doesn't understand relative paths. Period. So all paths must start with a backslash (
\
) character. - "Computer" is highly unlikely to be part of the path on your device. Use Explorer on the device ansd look at the path there. What you're after is probably something like
\Program Files\hhs\mydatabase.sdf
- Desktop paths to a device are not actual paths. They are shell plug-in trickery. A path on the PC like
My Device\Program Files\foo.bar
is not a path resolvable by any File APIs on the desktop. If you want to access a device file from a PC app, you must use something like RAPI to pull the file locally, then use the local copy