Path to Directory in Pocket PC using C#

Hello All,
I have an application that I am creating that will run on Pocket PC 2003 SE.
The code base is C# using the Compact Framework 2.0.

I need to know in code how to get the path to a folder on the Pocket PC.
I am creating an xml file to load configurations.

Who is Participating?
grayeConnect With a Mentor Commented:
As you've already figured out... the CF doesn't support Directory.GetCurrentDirectory.... so you have to do it the hard way, as in...


MessageBox.Show(Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData) + "\\SomePath");

Open in new window

abennett10Author Commented:
Thanks! That worked.....yea there a few things different about CF that I have to keep my eye on.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.