İpucu: .NET ile yazdığınız Windows servisinin çalıştığı dizini bulun

.NETİpucu comments

Bir Windows Forms uygulamasında Application.StartupPath ile eriştiğimiz çalışma dizinine Windows servisi şartları altında (System.Windows.Forms.Application sınıfına ulaşamadığımız bir durumda) şu şekilde erişebiliriz:

System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().Location)

Comments