Aug 11, 2011

How to retrieve Application Data Folder using C# (.NET)


ApplicationData is the directory that serves as a common repository for application-specific data for the current roaming user. It can be retrieved using



current user:
Console.WriteLine("ApplicationData := " +Environment.GetFolderPath(Environment.SpecialFolder.ApplicationData));



This example produces the following results:

GetFolderPath: C:\WINNT\System32


Accessing Application data folder path for all windows users



 MessageBox.Show("ApplicationData := " + 
Environment.GetFolderPath(Environment.SpecialFolder.CommonApplicationData));







No comments:

Post a Comment