9 Şubat 2010 Salı

Windows CE ve uygulama dizini "Path"

Windows CE ile geliştirilen uygulamalarda, uygulamanın çalıştığı path i bulmak gerekebiliyor.

Windows CE ve Path


System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;

string FullPath = System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase;
System.IO.DirectoryInfo dir = new System.IO.DirectoryInfo(FullPath);
string _appPath = dir.Parent.FullName;

Hiç yorum yok: