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.

THanks!
abennett10Asked:
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(System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase)); 

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

Open in new window

0
 
abennett10Author Commented:
Thanks! That worked.....yea there a few things different about CF that I have to keep my eye on.
0
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.