Export (0) Print
Expand All
Expand Minimize
1 out of 2 rated this helpful - Rate this topic

Environment.SpecialFolder Enumeration

Specifies enumerated constants used to retrieve directory paths to system special folders.

Namespace: System
Assembly: mscorlib (in mscorlib.dll)

[ComVisibleAttribute(true)] 
public enum SpecialFolder
/** @attribute ComVisibleAttribute(true) */ 
public enum SpecialFolder
ComVisibleAttribute(true) 
public enum SpecialFolder
 Member nameDescription
Supported by the .NET Compact FrameworkApplicationDataThe directory that serves as a common repository for application-specific data for the current roaming user. 

A roaming user works on more than one computer on a network. A roaming user's profile is kept on a server on the network and is loaded onto a system when the user logs on.

CommonApplicationDataThe directory that serves as a common repository for application-specific data that is used by all users. 
CommonProgramFilesThe directory for components that are shared across applications. 
CookiesThe directory that serves as a common repository for Internet cookies. 
DesktopThe logical Desktop rather than the physical file system location. 
DesktopDirectoryThe directory used to physically store file objects on the desktop. 

Do not confuse this directory with the desktop folder itself, which is a virtual folder.

Supported by the .NET Compact FrameworkFavoritesThe directory that serves as a common repository for the user's favorite items. 
HistoryThe directory that serves as a common repository for Internet history items. 
InternetCacheThe directory that serves as a common repository for temporary Internet files. 
LocalApplicationDataThe directory that serves as a common repository for application-specific data that is used by the current, non-roaming user. 
MyComputerThe "My Computer" folder.  
NoteNote:

The MyComputer constant always yields the empty string ("") because no path is defined for the My Computer folder.

MyDocumentsThe "My Documents" folder. 
MyMusicThe "My Music" folder. 
MyPicturesThe "My Pictures" folder. 
Supported by the .NET Compact FrameworkPersonalThe directory that serves as a common repository for documents. 
ProgramFilesThe program files directory. 
Supported by the .NET Compact FrameworkProgramsThe directory that contains the user's program groups. 
RecentThe directory that contains the user's most recently used documents. 
SendToThe directory that contains the Send To menu items. 
Supported by the .NET Compact FrameworkStartMenuThe directory that contains the Start menu items. 
Supported by the .NET Compact FrameworkStartupThe directory that corresponds to the user's Startup program group. 

The system starts these programs whenever a user logs on or starts Windows NT or later, or starts Windows 98.

SystemThe System directory. 
TemplatesThe directory that serves as a common repository for document templates. 

The system special folders are folders such as Program Files, Programs, System, or Startup, which contain common information. Special folders are set by default by the system, or explicitly by the user, when installing a version of Windows.

The GetFolderPath method uses these enumerated constants to designate the special folder path to retrieve.

For more information about special folders, see the CSIDL Values topic at http://msdn.microsoft.com/library/en-us/shellcc/platform/Shell/reference/enums/csidl.asp.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0

XNA Framework

Supported in: 1.0
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.