Solved

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

Posted on 2009-03-30
2
2,074 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

Manage your data center from practically anywhere

The KN8164V features HD resolution of 1920 x 1200, FIPS 140-2 with level 1 security standards and virtual media transmissions at twice the speed. Built for reliability, the KN series provides local console and remote over IP access, ensuring 24/7 availability to all servers.

Question has a verified solution.

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

Suggested Solutions

A Bare Metal Image backup allows for the restore of an entire system to a similar or dissimilar hardware. They are highly useful for migrations and disaster recovery. Bare Metal Image backups support Full and Incremental backups. Differential backup…
An article on effective troubleshooting
In this video, we discuss why the need for additional vertical screen space has become more important in recent years, namely, due to the transition in the marketplace of 4x3 computer screens to 16x9 and 16x10 screens (so-called widescreen format). …
This Micro Tutorial will give you a basic overview of Windows DVD Burner through its features and interface. This will be demonstrated using Windows 7 operating system.

828 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