Path to Directory in Pocket PC using C#

Posted on 2009-12-21
Last Modified: 2013-12-17
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.

Question by:abennett10
    LVL 41

    Accepted Solution

    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


    Author Closing Comment

    Thanks! That worked.....yea there a few things different about CF that I have to keep my eye on.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Highfive Gives IT Their Time Back

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    A long time ago (May 2011), I have written an article showing you how to create a DLL using Visual Studio 2005 to be hosted in SQL Server 2005. That was valid at that time and it is still valid if you are still using these versions. You can still re…
    It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
    This video is in connection to the article "The case of a missing mobile phone (". It will help one to understand clearly the steps to track a lost android phone.
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now