I am creating a program that consists of a (1) Windows Service
and a view (2) WPF Application
. (the view and service do not have to be run at the same time) I will like to save all the settings on the same location. I was thinking to save all the settings on my application data directory. Because (1)
and (2)
are run by different users, Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData)
returns a different directory for each. How can I save both my wpf and windows service data on the same directory?
When I initialize my wpf application I will like to read some of the files created by my windows service. where should my windows service write files so that my wpf application can see them?