program folder

D

droll

i have a bunch of xml files that hold the config options for my app. i place
these in the output folder of the app. it gets deployed to the target
device. how to i reference these files in my app? i understand there is no
notion of a default or working path in windows ce. is there an API i can use
to get the path to the file?
 
G

Gilles Kohl [MVP]

droll,

i have a bunch of xml files that hold the config options for my app. i place
these in the output folder of the app. it gets deployed to the target
device. how to i reference these files in my app? i understand there is no
notion of a default or working path in windows ce. is there an API i can use
to get the path to the file?

Try

System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase

Regards,
Gilles [MVP].

(Please reply to the group, not via email)
 

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