المساعد الشخصي الرقمي

مشاهدة النسخة كاملة : Getting application config directory folder path



C# Programming
11-23-2009, 07:50 PM
I'm working on a Service in C# that will be run on Windows and on Linux. On Linux you store app config in /etc, but on Windows XP it's "C:\Document and Settings\{USERNAME}\Local Settings\Application Data". How would I go about getting those file paths without having to worry about platform detection?