Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2009-03-30
2
Medium Priority
?
2,091 Views
Last Modified: 2013-12-05
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?
0
Comment
Question by:aemekli
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 2000 total points
ID: 24018626
the following

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

gives you full path to the folder of running assembly (your app in this case)
0
 

Author Closing Comment

by:aemekli
ID: 31564315
Thank you very much alexey_gusev!
My problem is solved now.
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Windows 10 Creator Update has just been released and I have it working very well on my laptop. Read below for issues, fixes and ideas.
Ever visit a website where you spotted a really cool looking Font, yet couldn't figure out which font family it belonged to, or how to get a copy of it for your own use? This article explains the process of doing exactly that, as well as showing how…
Get a first impression of how PRTG looks and learn how it works.   This video is a short introduction to PRTG, as an initial overview or as a quick start for new PRTG users.
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

604 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