System.Environment
CurrentDirectory
System.Environment.CurrentDirectory
MachineName
System.Environment.MachineName
NewLine
System.Environment.NewLine
OSVersion
System.Environment.OSVersion
SystemDirectory
System.Environment.SystemDirectory
UserInteractive
System.Environment.UserInteractive
UserName
System.Environment.UserName
Version
System.Environment.Version
GetFolderPath Method
System.Environment.GetFolderPath
GetLogicalDrives Method
System.Environment.GetLogicalDrives
SpecialFolder
System.Environment.SpecialFolder
Specifies enumerated constants used to retrieve directory paths to system special folders.
| 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. (48) |
| ApplicationData | The 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. (26) |
| CDBurning | The file system directory that acts as a staging area for files waiting to be written to a CD. (59) |
| CommonAdminTools | The file system directory that contains administrative tools for all users of the computer. (47) |
| CommonApplicationData | The directory that serves as a common repository for application-specific data that is used by all users. (35) |
| CommonDesktopDirectory | The file system directory that contains files and folders that appear on the desktop for all users. (25) |
| CommonDocuments | The file system directory that contains documents that are common to all users. (46) |
| CommonMusic | The file system directory that serves as a repository for music files common to all users. (53) |
| CommonOemLinks | This value is recognized in Windows Vista for backward compatibility, but the special folder itself is no longer used. (58) |
| CommonPictures | The file system directory that serves as a repository for image files common to all users. (54) |
| CommonProgramFiles | The directory for components that are shared across applications. To get the x86 common program files directory in a non-x86 process, use the ProgramFilesX86 member. (43) |
| CommonProgramFilesX86 | The Program Files folder. (44) |
| CommonPrograms | A folder for components that are shared across applications. (23) |
| CommonStartMenu | The file system directory that contains the programs and folders that appear on the Start menu for all users. (22) |
| CommonStartup | The file system directory that contains the programs that appear in the Startup folder for all users. (24) |
| CommonTemplates | The file system directory that contains the templates that are available to all users. (45) |
| CommonVideos | The file system directory that serves as a repository for video files common to all users. (55) |
| Cookies | The directory that serves as a common repository for Internet cookies. (33) |
| Desktop | The logical Desktop rather than the physical file system location. (0) |
| DesktopDirectory | The 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. (16) |
| Favorites | The directory that serves as a common repository for the user's favorite items. (6) |
| Fonts | A virtual folder that contains fonts. (20) |
| History | The directory that serves as a common repository for Internet history items. (34) |
| InternetCache | The directory that serves as a common repository for temporary Internet files. (32) |
| LocalApplicationData | The directory that serves as a common repository for application-specific data that is used by the current, non-roaming user. (28) |
| LocalizedResources | The file system directory that contains localized resource data. (57) |
| MyComputer | The My Computer folder. When passed to the Environment.GetFolderPath method, the MyComputer enumeration member always yields the empty string ("") because no path is defined for the My Computer folder. (17) |
| MyDocuments | The My Documents folder. This member is equivalent to Personal. (5) |
| MyMusic | The My Music folder. (13) |
| MyPictures | The My Pictures folder. (39) |
| MyVideos | The file system directory that serves as a repository for videos that belong to a user. (14) |
| NetworkShortcuts | A file system directory that contains the link objects that may exist in the My Network Places virtual folder. (19) |
| Personal | The directory that serves as a common repository for documents. This member is equivalent to MyDocuments. (5) |
| PrinterShortcuts | The file system directory that contains the link objects that can exist in the Printers virtual folder. (27) |
| ProgramFiles | In a non-x86 process, passing ProgramFiles to the GetFolderPath(Environment+SpecialFolder) method returns the path for non-x86 programs. To get the x86 program files directory in a non-x86 process, use the ProgramFilesX86 member. (38) |
| ProgramFilesX86 | The x86 Program Files folder. (42) |
| Programs | The directory that contains the user's program groups. (2) |
| Recent | The directory that contains the user's most recently used documents. (8) |
| Resources | The file system directory that contains resource data. (56) |
| SendTo | The directory that contains the Send To menu items. (9) |
| StartMenu | The directory that contains the Start menu items. (11) |
| Startup | The directory that corresponds to the user's Startup program group. The system starts these programs whenever a user logs on or starts Windows. (7) |
| System | The System directory. (37) |
| SystemX86 | The Windows System folder. (41) |
| Templates | The directory that serves as a common repository for document templates. (21) |
| 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. (40) |
| Windows | The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. (36) |
| 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. (48) |
| ApplicationData The 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. (26) |
| CDBurning The file system directory that acts as a staging area for files waiting to be written to a CD. (59) |
| CommonAdminTools The file system directory that contains administrative tools for all users of the computer. (47) |
| CommonApplicationData The directory that serves as a common repository for application-specific data that is used by all users. (35) |
| CommonDesktopDirectory The file system directory that contains files and folders that appear on the desktop for all users. (25) |
| CommonDocuments The file system directory that contains documents that are common to all users. (46) |
| CommonMusic The file system directory that serves as a repository for music files common to all users. (53) |
| CommonOemLinks This value is recognized in Windows Vista for backward compatibility, but the special folder itself is no longer used. (58) |
| CommonPictures The file system directory that serves as a repository for image files common to all users. (54) |
| CommonProgramFiles The directory for components that are shared across applications. To get the x86 common program files directory in a non-x86 process, use the ProgramFilesX86 member. (43) |
| CommonProgramFilesX86 The Program Files folder. (44) |
| CommonPrograms A folder for components that are shared across applications. (23) |
| CommonStartMenu The file system directory that contains the programs and folders that appear on the Start menu for all users. (22) |
| CommonStartup The file system directory that contains the programs that appear in the Startup folder for all users. (24) |
| CommonTemplates The file system directory that contains the templates that are available to all users. (45) |
| CommonVideos The file system directory that serves as a repository for video files common to all users. (55) |
| Cookies The directory that serves as a common repository for Internet cookies. (33) |
| Desktop The logical Desktop rather than the physical file system location. (0) |
| DesktopDirectory The 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. (16) |
| Favorites The directory that serves as a common repository for the user's favorite items. (6) |
| Fonts A virtual folder that contains fonts. (20) |
| History The directory that serves as a common repository for Internet history items. (34) |
| InternetCache The directory that serves as a common repository for temporary Internet files. (32) |
| LocalApplicationData The directory that serves as a common repository for application-specific data that is used by the current, non-roaming user. (28) |
| LocalizedResources The file system directory that contains localized resource data. (57) |
| MyComputer The My Computer folder. When passed to the Environment.GetFolderPath method, the MyComputer enumeration member always yields the empty string ("") because no path is defined for the My Computer folder. (17) |
| MyDocuments The My Documents folder. This member is equivalent to Personal. (5) |
| MyMusic The My Music folder. (13) |
| MyPictures The My Pictures folder. (39) |
| MyVideos The file system directory that serves as a repository for videos that belong to a user. (14) |
| NetworkShortcuts A file system directory that contains the link objects that may exist in the My Network Places virtual folder. (19) |
| Personal The directory that serves as a common repository for documents. This member is equivalent to MyDocuments. (5) |
| PrinterShortcuts The file system directory that contains the link objects that can exist in the Printers virtual folder. (27) |
| ProgramFiles In a non-x86 process, passing ProgramFiles to the GetFolderPath(Environment+SpecialFolder) method returns the path for non-x86 programs. To get the x86 program files directory in a non-x86 process, use the ProgramFilesX86 member. (38) |
| ProgramFilesX86 The x86 Program Files folder. (42) |
| Programs The directory that contains the user's program groups. (2) |
| Recent The directory that contains the user's most recently used documents. (8) |
| Resources The file system directory that contains resource data. (56) |
| SendTo The directory that contains the Send To menu items. (9) |
| StartMenu The directory that contains the Start menu items. (11) |
| Startup The directory that corresponds to the user's Startup program group. The system starts these programs whenever a user logs on or starts Windows. (7) |
| System The System directory. (37) |
| SystemX86 The Windows System folder. (41) |
| Templates The directory that serves as a common repository for document templates. (21) |
| 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. (40) |
| Windows The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. (36) |
System.Environment.GetFolderPath(System.Environment.SpecialFolder.ApplicationData)
SpecialFolderOptions
System.Environment.SpecialFolderOptions
© 2026 Better Solutions Limited. All Rights Reserved. © 2026 Better Solutions Limited TopPrevNext