Constants that are used with folder operations.
- tempdir
- The Windows temporary folder.
- systemdir
- The Windows system folder.
- windowsdir
- The main Windows directory.
- appdir
- The Windows "Program Files" directory.
The following constants are used to get folder locations from a Windows operating system. For more detailed information, see the CSIDL MSDN Article.
- CSIDL_ADMINTOOLS
- The file system directory that is used to store administrative tools for an individual user.
- CSIDL_APPDATA
- The file system directory that serves as a common repository for application-specific data, such as "C:\Documents and Settings\username\Application Data".
- CSIDL_COMMON_ADMINTOOLS
- The file system directory that contains administrative tools for all users of the computer.
- CSIDL_COMMON_APPDATA
- The file system directory that contains application data for all users. A typical path is "C:\Documents and Settings\All Users\Application Data". This data can be accessed by all users.
- CSIDL_COMMON_DOCUMENTS
- The file system directory that contains documents that are common to all users. A typical paths is "C:\Documents and Settings\All Users\Documents".
- CSIDL_COOKIES
- The file system directory that serves as a common repository for Internet cookies. A typical path is "C:\Documents and Settings\username\Cookies".
- CSIDL_LOCAL_APPDATA
- The file system directory that serves as a data repository for local applications. A typical path is "C:\Documents and Settings\username\Local Settings\Application Data".
- CSIDL_INTERNET_CACHE
- The file system directory that serves as a common repository for temporary Internet files. A typical path is "C:\Documents and Settings\username\Local Settings\Temporary Internet Files".
- CSIDL_RESOURCES
- Windows Vista ONLY. The file system directory that contains resource data. A typical path is "C:\Windows\Resources".
- CSIDL_PROGRAM_FILES_COMMON
- A folder for components that are shared across applications. A typical path is "C:\Program Files\Common". Only available on NT based systems (NT, 200, XP)
- CSIDL_MYPICTURES
- The file system directory that serves as a common repository for image files. A typical path is "C:\Documents and Settings\username\My Documents\My Pictures".
- CSIDL_PROGRAM_FILES
- The Program Files folder. A typical path is "C:\Program Files".
- CSIDL_SYSTEM
- The Windows System folder. A typical path is "C:\Windows\System32"
- CSIDL_WINDOWS
- The Windows directory or SYSROOT. This corresponds to the %windir% or %SYSTEMROOT% environment variables. A typical path is "C:\Windows"
- CSIDL_HISTORY
- The file system directory that serves as a common repository for Internet history items.
- CSIDL_MYMUSIC
- The file system directory that serves as a common repository for music files. A typical path is "C:\Documents and Settings\User\My Documents\My Music".