Solved

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

Posted on 2009-03-30
2
2,067 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
2 Comments
 
LVL 24

Accepted Solution

by:
alexey_gusev earned 500 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

The problems with reply email signatures

Do you wish that you could place an email signature under a reply? Well, unfortunately, you can't. That great Exchange/Office 365 signature you've created will just appear at the bottom of an email chain. What a pain! Is there really no way to solve this? Well, there might be...

Join & Write a Comment

Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
When you start your Windows 10 PC and got an "Operating system not found" error or just saw  "Auto repair for startup". After a while, you have entered a loop for Auto repair which does not fix anything and you will be in a  panic as all your work w…
The Task Scheduler is a powerful tool that is built into Windows. It allows you to schedule tasks (actions) on a recurring basis, such as hourly, daily, weekly, monthly, at log on, at startup, on idle, etc. This video Micro Tutorial is a brief intro…
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.

760 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

20 Experts available now in Live!

Get 1:1 Help Now