How to get Application-directory?

  • Thread starter Thread starter Matteo Cima
  • Start date Start date
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.
 
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
 
Back
Top