Solved

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

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

A project that enables an administrator to perform actions within a user session context not just at the time of login but any time later on day(s) or week(s) later.
The Windows functions GetTickCount and timeGetTime retrieve the number of milliseconds since the system was started. However, the value is stored in a DWORD, which means that it wraps around to zero every 49.7 days. This article shows how to solve t…
Windows 8 came with a dramatically different user interface known as Metro. Notably missing from that interface was a Start button and Start Menu. Microsoft responded to negative user feedback of the Metro interface, bringing back the Start button a…
With the advent of Windows 10, Microsoft is pushing a Get Windows 10 icon into the notification area (system tray) of qualifying computers. There are many reasons for wanting to remove this icon. This two-part Experts Exchange video Micro Tutorial 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