Get path to Application Data folder

String appData = Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData);

Return: C:\Documents and Settings\[username]\Application Data (On Windows XP)
---
Other members: http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx

Leave a Reply