Sunday, 13 June 2010

Environment SpecialFolder directory paths

The Environment.SpecialFolder enumeration can be used to obtain the full path to system special folders.
The enumeration includes:
Supported by the XNA Framework
ApplicationData
Common repository for application-specific data for the current roaming user.
CommonApplicationData
Common repository for application-specific data that is used by all users.
LocalApplicationData
Common repository for application-specific data that is used by the current, non-roaming user.
Cookies
Common repository for Internet cookies.
Desktop
The logical Desktop rather than the physical file system location.
DesktopDirectory
The directory used to physically store file objects on the desktop.
Favorites
Common repository for the user's favourite items.
History
Common repository for Internet history items.
InternetCache
Temporary Internet files folder.
Supported by the XNA Framework
Programs
The directory that contains the user's program groups.
MyComputer
The My Computer folder.
n.b.
The MyComputer constant always yields the empty string ("") because no path is defined for the My Computer folder.
MyMusic
The My Music folder.
MyPictures
The My Pictures folder.
Recent
The directory that contains the user's most recently used documents.
SendTo
The directory that contains the Send To menu items.
Supported by the XNA Framework
StartMenu
The directory that contains the Start menu items.
Supported by the XNA Framework
Startup
The directory that corresponds to the user's Startup program group.
System
The System directory.
Templates
The directory that serves as a common repository for document templates.
Supported by the
 XNA Framework
Personal
The directory that serves as a common repository for documents.
This member is equivalent to MyDocuments.
MyDocuments
The My Documents folder.
This member is equivalent to Personal.
ProgramFiles
The program files directory.
CommonProgramFiles
The directory for components that are shared across applications.
AdminTools
The file system directory that is used to store administrative tools for an individual user. The Microsoft Management Console (MMC) will save customized consoles to this directory, and it will roam with the user.
CDBurning
The file system directory that acts as a staging area for files waiting to be written to a CD.
CommonAdminTools
The file system directory that contains administrative tools for all users of the computer.
CommonDocuments
The file system directory that contains documents that are common to all users. This special folder is valid for Windows NT systems, Windows 95, and Windows 98 systems with Shfolder.dll installed.
CommonMusic
The file system directory that serves as a repository for music files common to all users.
CommonOemLinks
This value is recognized in Windows Vista for backward compatibility, but the special folder itself is no longer used.
CommonPictures
The file system directory that serves as a repository for image files common to all users.
CommonStartMenu
The file system directory that contains the programs and folders that appear on the Start menu for all users. This special folder is valid only for Windows NT systems.
CommonPrograms
A folder for components that are shared across applications. This special folder is valid only for Windows NT, Windows 2000, and Windows XP systems.
CommonStartup
The file system directory that contains the programs that appear in the Startup folder for all users. This special folder is valid only for Windows NT systems.
CommonDesktopDirectory
The file system directory that contains files and folders that appear on the desktop for all users. This special folder is valid only for Windows NT systems.
CommonTemplates
The file system directory that contains the templates that are available to all users. This special folder is valid only for Windows NT systems.
CommonVideos
The file system directory that serves as a repository for video files common to all users.
Fonts
A virtual folder that contains fonts.
MyVideos
The file system directory that serves as a repository for videos that belong to a user.
NetworkShortcuts
A file system directory that contains the link objects that may exist in the My Network Places virtual folder.
PrinterShortcuts
The file system directory that contains the link objects that can exist in the Printers virtual folder.
UserProfile
The user's profile folder. Applications should not create files or folders at this level; they should put their data under the locations referred to by ApplicationData.
CommonProgramFilesX86
The Program Files folder.
ProgramFilesX86
The Program Files folder.
Resources
The file system directory that contains resource data.
LocalizedResources
The file system directory that contains localized resource data.
SystemX86
The Windows System folder.
Windows
The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables.
Full Microsoft resource: http://msdn.microsoft.com/en-us/library/system.environment.specialfolder.aspx

1 comment:

C# Get User Desktop Path « Banshee Technologies said...

[...] Environment SpecialFolder directory paths [...]