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?
<ctacke/> - 31 Dec 2005 12:44 GMT
This is an FAQ. Google for it.
-Chris
>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?
Gilles Kohl [MVP] - 31 Dec 2005 13:04 GMT
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)