application location

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi,

How do I find out the path of the project that I am developing. I want to
create an ini file in the same folder as my application but I don't know how
to access the ini file because I can't seem to get a handle on the path of
the project

Any help would be appreciated

Thanks
 
Hi,
Hi,

How do I find out the path of the project that I am developing. I want to
create an ini file in the same folder as my application but I don't know how
to access the ini file because I can't seem to get a handle on the path of
the project

Any help would be appreciated

Thanks

You can get the path of the executing assembly with:

Assembly.GetExecutingAssembly().Location

Note however that in some cases, the assembly is cached, so the path is
not what you may expect (especially for ASP.NET applications).

HTH,
Laurent
 
I can't get a handle onto the Location property for the Assembly class. I am
developing this for a mobile device if this helps anybody
 
try the fully qualified name:

System.Reflection.Assembly.GetExecutingAssembly().Location
--
Good luck!

Shailen Sukul
Architect
(BSc MCTS, MCSD.Net MCSD MCAD)
Ashlen Consulting Service P/L
(http://www.ashlen.net.au)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top