How to get Application-directory?

M

Matteo Cima

from the answer of a previous thread:

public string ApplicationLocation()
{
return
System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssem
bly().GetName().CodeBase.ToString());
}

Matteo.
 
D

Daniel Barisch

Is it possible to get the complete path to the exe-file of a running
CF-application, so that i can store files (...) in the same directory? Only
giving the blank filename to a stream writes it into the root directory.

Thanks, D.Barisch
 

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

Top