How do I get application running path of an Windows CE 5.0?

I'm developing a windows mobile application in C# .Net 2.0 that reads a text file located in the same path which the exe file located. To do that I have to get the application path of the running exe. Could you give me the necessary code for doing that please?
aemekliAsked:
Who is Participating?
 
alexey_gusevCommented:
the following

Path.GetDirectoryName(Assembly.GetExecutingAssembly().GetName().CodeBase)

gives you full path to the folder of running assembly (your app in this case)
0
 
aemekliAuthor Commented:
Thank you very much alexey_gusev!
My problem is solved now.
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.