设为首页收藏本站Access中国

Office中国论坛/Access中国论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

返回列表 发新帖
查看: 4285|回复: 4
打印 上一主题 下一主题

[API] 【技巧】微软官方系统环境变量清单

[复制链接]

点击这里给我发消息

跳转到指定楼层
1#
发表于 2015-4-1 23:33:36 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
微软官方系统环境变量这是官方最全的清单。摘录一下,。同时给大家参考:
原文地址:https://msdn.microsoft.com/en-us/library/windows/desktop/dd378457(v=vs.85).aspx

KNOWNFOLDERID
The KNOWNFOLDERID constants represent GUIDs that identify standard folders registered with the system as Known Folders. These folders are installed with Windows Vista and later operating systems, and a computer will have only folders appropriate to it installed.
原文链接

常量                                                                                                                                                                描述

FOLDERID_AccountPictures
GUID{008ca0b1-55b4-4c56-b8a8-4de4b299d3be}
Display NameAccount Pictures
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\AccountPictures
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_AddNewPrograms
GUID{de61d971-5ebc-4f02-a3a9-6c82895e5c04}
Display NameGet Programs
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameAdd New Programs (found in the Add or Remove Programs item in the Control Panel)
Legacy Default PathNot applicable—virtual folder


FOLDERID_AdminTools
GUID{724EF170-A42D-4FEF-9F26-B60E846FBA4F}
Display NameAdministrative Tools
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
CSIDL EquivalentCSIDL_ADMINTOOLS
Legacy Display NameAdministrative Tools
Legacy Default Path%USERPROFILE%\Start Menu\Programs\Administrative Tools


FOLDERID_ApplicationShortcuts
GUID{A3918781-E5F2-4890-B3D9-A7E54332328C}
Display NameApplication Shortcuts
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\Application Shortcuts
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_AppsFolder
GUID{1e87508d-89c2-42f0-8a7e-645a0f50ca58}
Display NameApplications
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_AppUpdates
GUID{a305ce99-f527-492b-8b1a-7e76fa98d6e4}
Display NameInstalled Updates
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameNone, value introduced in Windows Vista. In earlier versions of     Windows, the information on this page was included in Add or Remove Programs if the Show updates box was checked.
Legacy Default PathNot applicable


FOLDERID_CameraRoll
GUID{AB5FB87B-7CE2-4F83-915D-550846C9537B}
Display NameCamera Roll
Folder TypePERUSER
Default Path%USERPROFILE%\Pictures\Camera Roll
CSIDL EquivalentNone, value introduced in Windows 8.1
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_CDBurning
GUID{9E52AB10-F80D-49DF-ACB8-4330F5687855}
Display NameTemporary Burn Folder
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\Burn\Burn
CSIDL EquivalentCSIDL_CDBURN_AREA
Legacy Display NameCD Burning
Legacy Default Path%USERPROFILE%\Local Settings\Application Data\Microsoft\CD Burning


FOLDERID_ChangeRemovePrograms
GUID{df7266ac-9274-4867-8d55-3bd661de872d}
Display NamePrograms and Features
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameAdd or Remove Programs
Legacy Default PathNot applicable—virtual folder


FOLDERID_CommonAdminTools
GUID{D0384E7D-BAC3-4797-8F14-CBA229B392B5}
Display NameAdministrative Tools
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
CSIDL EquivalentCSIDL_COMMON_ADMINTOOLS
Legacy Display NameAdministrative Tools
Legacy Default Path%ALLUSERSPROFILE%\Start Menu\Programs\Administrative Tools


FOLDERID_CommonOEMLinks
GUID{C1BAE2D0-10DF-4334-BEDD-7AA20B227A9D}
Display NameOEM Links
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\OEM Links
CSIDL EquivalentCSIDL_COMMON_OEM_LINKS
Legacy Display NameOEM Links
Legacy Default Path%ALLUSERSPROFILE%\OEM Links


FOLDERID_CommonPrograms
GUID{0139D44E-6AFE-49F2-8690-3DAFCAE6FFB8}
Display NamePrograms
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs
CSIDL EquivalentCSIDL_COMMON_PROGRAMS
Legacy Display NamePrograms
Legacy Default Path%ALLUSERSPROFILE%\Start Menu\Programs


FOLDERID_CommonStartMenu
GUID{A4115719-D62E-491D-AA7C-E74B8BE3B067}
Display NameStart Menu
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu
CSIDL EquivalentCSIDL_COMMON_STARTMENU
Legacy Display NameStart Menu
Legacy Default Path%ALLUSERSPROFILE%\Start Menu


FOLDERID_CommonStartup
GUID{82A5EA35-D9CD-47C5-9629-E15D2F714E6E}
Display NameStartup
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\StartUp
CSIDL EquivalentCSIDL_COMMON_STARTUP, CSIDL_COMMON_ALTSTARTUP
Legacy Display NameStartup
Legacy Default Path%ALLUSERSPROFILE%\Start Menu\Programs\StartUp


FOLDERID_CommonTemplates
GUID{B94237E7-57AC-4347-9151-B08C6C32D1F7}
Display NameTemplates
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\Templates
CSIDL EquivalentCSIDL_COMMON_TEMPLATES
Legacy Display NameTemplates
Legacy Default Path%ALLUSERSPROFILE%\Templates


FOLDERID_ComputerFolder
GUID{0AC0837C-BBF8-452A-850D-79D08E667CA7}
Display NameComputer
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentCSIDL_DRIVES
Legacy Display NameMy Computer
Legacy Default PathNot applicable—virtual folder


FOLDERID_ConflictFolder
GUID{4bfefb45-347d-4006-a5be-ac0cb0567192}
Display NameConflicts
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable. This KNOWNFOLDERID refers to the Windows Vista Synchronization Manager. It is not the folder referenced by the older ISyncMgrConflictFolder.
Legacy Default PathNot applicable


FOLDERID_ConnectionsFolder
GUID{6F0CD92B-2E97-45D1-88FF-B0D186B8DEDD}
Display NameNetwork Connections
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentCSIDL_CONNECTIONS
Legacy Display NameNetwork Connections
Legacy Default PathNot applicable—virtual folder


FOLDERID_Contacts
GUID{56784854-C6CB-462b-8169-88E350ACB882}
Display NameContacts
Folder TypePERUSER
Default Path%USERPROFILE%\Contacts
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_ControlPanelFolder
GUID{82A74AEB-AEB4-465C-A014-D097EE346D63}
Display NameControl Panel
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentCSIDL_CONTROLS
Legacy Display NameControl Panel
Legacy Default PathNot applicable—virtual folder


FOLDERID_Cookies
GUID{2B0F765D-C0E9-4171-908E-08A611B84FF6}
Display NameCookies
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Cookies
CSIDL EquivalentCSIDL_COOKIES
Legacy Display NameCookies
Legacy Default Path%USERPROFILE%\Cookies

分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏1 分享分享 分享淘帖 订阅订阅

点击这里给我发消息

2#
 楼主| 发表于 2015-4-1 23:36:18 | 只看该作者
FOLDERID_Desktop
GUID{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}
Display NameDesktop
Folder TypePERUSER
Default Path%USERPROFILE%\Desktop
CSIDL EquivalentCSIDL_DESKTOP, CSIDL_DESKTOPDIRECTORY
Legacy Display NameDesktop
Legacy Default Path%USERPROFILE%\Desktop


FOLDERID_DeviceMetadataStore
GUID{5CE4A5E9-E4EB-479D-B89F-130C02886155}
Display NameDeviceMetadataStore
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\DeviceMetadataStore
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Documents
GUID{FDD39AD0-238F-46AF-ADB4-6C85480369C7}
Display NameDocuments
Folder TypePERUSER
Default Path%USERPROFILE%\Documents
CSIDL EquivalentsCSIDL_MYDOCUMENTS, CSIDL_PERSONAL
Legacy Display NameMy Documents
Legacy Default Path%USERPROFILE%\My Documents


FOLDERID_DocumentsLibrary
GUID{7B0DB17D-9CD2-4A93-9733-46CC89022E7C}
Display NameDocuments
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Libraries\Documents.library-ms
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Downloads
GUID{374DE290-123F-4565-9164-39C4925E467B}
Display NameDownloads
Folder TypePERUSER
Default Path%USERPROFILE%\Downloads
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Favorites
GUID{1777F761-68AD-4D8A-87BD-30B759FA33DD}
Display NameFavorites
Folder TypePERUSER
Default Path%USERPROFILE%\Favorites
CSIDL EquivalentCSIDL_FAVORITES, CSIDL_COMMON_FAVORITES
Legacy Display NameFavorites
Legacy Default Path%USERPROFILE%\Favorites


FOLDERID_Fonts
GUID{FD228CB7-AE11-4AE3-864C-16F3910AB8FE}
Display NameFonts
Folder TypeFIXED
Default Path%windir%\Fonts
CSIDL EquivalentCSIDL_FONTS
Legacy Display NameFonts
Legacy Default Path%windir%\Fonts


FOLDERID_Games
GUID{CAC52C1A-B53D-4edc-92D7-6B2E8AC19434}
Display NameGames
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_GameTasks
GUID{054FAE61-4DD8-4787-80B6-090220C4B700}
Display NameGameExplorer
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\GameExplorer
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_History
GUID{D9DC8A3B-B784-432E-A781-5A1130A75963}
Display NameHistory
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\History
CSIDL EquivalentCSIDL_HISTORY
Legacy Display NameHistory
Legacy Default Path%USERPROFILE%\Local Settings\History


FOLDERID_HomeGroup
GUID{52528A6B-B9E3-4ADD-B60D-588C2DBA842D}
Display NameHomegroup
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_HomeGroupCurrentUser
GUID{9B74B6A3-0DFD-4f11-9E78-5F7800F2E772}
Display NameThe user's username (%USERNAME%)
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_ImplicitAppShortcuts
GUID{BCB5256F-79F6-4CEE-B725-DC34E402FD46}
Display NameImplicitAppShortcuts
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_InternetCache
GUID{352481E8-33BE-4251-BA85-6007CAEDCF9D}
Display NameTemporary Internet Files
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\Temporary Internet Files
CSIDL EquivalentCSIDL_INTERNET_CACHE
Legacy Display NameTemporary Internet Files
Legacy Default Path%USERPROFILE%\Local Settings\Temporary Internet Files


FOLDERID_InternetFolder
GUID{4D9F7874-4E0C-4904-967B-40B0D20C3E4B}
Display NameThe Internet
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentCSIDL_INTERNET
Legacy Display NameInternet Explorer
Legacy Default PathNot applicable—virtual folder


FOLDERID_Libraries
GUID{1B3EA5DC-B587-4786-B4EF-BD1DC332AEAE}
Display NameLibraries
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Libraries
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Links
GUID{bfb9d5e0-c6a9-404c-b2b2-ae6db6af4968}
Display NameLinks
Folder TypePERUSER
Default Path%USERPROFILE%\Links
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_LocalAppData
GUID{F1B32785-6FBA-4FCF-9D55-7B8E7F157091}
Display NameLocal
Folder TypePERUSER
Default Path%LOCALAPPDATA% (%USERPROFILE%\AppData\Local)
CSIDL EquivalentCSIDL_LOCAL_APPDATA
Legacy Display NameApplication Data
Legacy Default Path%USERPROFILE%\Local Settings\Application Data


FOLDERID_LocalAppDataLow
GUID{A520A1A4-1780-4FF6-BD18-167343C5AF16}
Display NameLocalLow
Folder TypePERUSER
Default Path%USERPROFILE%\AppData\LocalLow
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_LocalizedResourcesDir
GUID{2A00375E-224C-49DE-B8D1-440DF7EF3DDC}
Display NameNone
Folder TypeFIXED
Default Path%windir%\resources\0409 (code page)
CSIDL EquivalentCSIDL_RESOURCES_LOCALIZED
Legacy Display NameNone
Legacy Default Path%windir%\resources\0409 (code page)


FOLDERID_Music
GUID{4BD8D571-6D19-48D3-BE97-422220080E43}
Display NameMusic
Folder TypePERUSER
Default Path%USERPROFILE%\Music
CSIDL EquivalentCSIDL_MYMUSIC
Legacy Display NameMy Music
Legacy Default Path%USERPROFILE%\My Documents\My Music


FOLDERID_MusicLibrary
GUID{2112AB0A-C86A-4FFE-A368-0DE96E47012E}
Display NameMusic
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Libraries\Music.library-ms
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_NetHood
GUID{C5ABBF53-E17F-4121-8900-86626FC2C973}
Display NameNetwork Shortcuts
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Network Shortcuts
CSIDL EquivalentCSIDL_NETHOOD
Legacy Display NameNetHood
Legacy Default Path%USERPROFILE%\NetHood


FOLDERID_NetworkFolder
GUID{D20BEEC4-5CA8-4905-AE3B-BF251EA09B53}
Display NameNetwork
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentCSIDL_NETWORK, CSIDL_COMPUTERSNEARME
Legacy Display NameMy Network Places
Legacy Default PathNot applicable—virtual folder


FOLDERID_OriginalImages
GUID{2C36C0AA-5812-4b87-BFD0-4CD0DFB19B39}
Display NameOriginal Images
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows Photo Gallery\Original Images
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PhotoAlbums
GUID{69D2CF90-FC33-4FB7-9A0C-EBB0F0FCB43C}
Display NameSlide Shows
Folder TypePERUSER
Default Path%USERPROFILE%\Pictures\Slide Shows
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PicturesLibrary
GUID{A990AE9F-A03B-4E80-94BC-9912D7504104}
Display NamePictures
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Libraries\Pictures.library-ms
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Pictures
GUID{33E28130-4E1E-4676-835A-98395C3BC3BB}
Display NamePictures
Folder TypePERUSER
Default Path%USERPROFILE%\Pictures
CSIDL EquivalentCSIDL_MYPICTURES
Legacy Display NameMy Pictures
Legacy Default Path%USERPROFILE%\My Documents\My Pictures


FOLDERID_Playlists
GUID{DE92C1C7-837F-4F69-A3BB-86E631204A23}
Display NamePlaylists
Folder TypePERUSER
Default Path%USERPROFILE%\Music\Playlists
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PrintersFolder
GUID{76FC4E2D-D6AD-4519-A663-37BD56068185}
Display NamePrinters
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentCSIDL_PRINTERS
Legacy Display NamePrinters and Faxes
Legacy Default PathNot applicable—virtual folder


点击这里给我发消息

3#
 楼主| 发表于 2015-4-1 23:37:01 | 只看该作者
FOLDERID_PrintHood
GUID{9274BD8D-CFD1-41C3-B35E-B13F55A758F4}
Display NamePrinter Shortcuts
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Printer Shortcuts
CSIDL EquivalentCSIDL_PRINTHOOD
Legacy Display NamePrintHood
Legacy Default Path%USERPROFILE%\PrintHood


FOLDERID_Profile
GUID{5E6C858F-0E22-4760-9AFE-EA3317B67173}
Display NameThe user's username (%USERNAME%)
Folder TypeFIXED
Default Path%USERPROFILE% (%SystemDrive%\Users\%USERNAME%)
CSIDL EquivalentCSIDL_PROFILE
Legacy Display NameThe user's username (%USERNAME%)
Legacy Default Path%USERPROFILE% (%SystemDrive%\Documents and Settings\%USERNAME%)


FOLDERID_ProgramData
GUID{62AB5D82-FDC1-4DC3-A9DD-070D1D495D97}
Display NameProgramData
Folder TypeFIXED
Default Path%ALLUSERSPROFILE% (%ProgramData%, %SystemDrive%\ProgramData)
CSIDL EquivalentCSIDL_COMMON_APPDATA
Legacy Display NameApplication Data
Legacy Default Path%ALLUSERSPROFILE%\Application Data


FOLDERID_ProgramFilesSee Remarks for more information.
GUID{905e63b6-c1bf-494e-b29c-65b732d3d21a}
Display NameProgram Files
Folder TypeFIXED
Default Path%ProgramFiles% (%SystemDrive%\Program Files)
CSIDL EquivalentCSIDL_PROGRAM_FILES
Legacy Display NameProgram Files
Legacy Default Path%ProgramFiles% (%SystemDrive%\Program Files)


FOLDERID_ProgramFilesX64This value is not supported on 32-bit operating systems. It also is not supported for 32-bit applications running on 64-bit operating systems. Attempting to use FOLDERID_ProgramFilesX64 in either situation results in an error. See Remarks for more information.
GUID{6D809377-6AF0-444b-8957-A3773F02200E}
Display NameProgram Files
Folder TypeFIXED
Default Path%ProgramFiles% (%SystemDrive%\Program Files)
CSIDL EquivalentNone
Legacy Display NameProgram Files
Legacy Default Path%ProgramFiles% (%SystemDrive%\Program Files)


FOLDERID_ProgramFilesX86See Remarks for more information.
GUID{7C5A40EF-A0FB-4BFC-874A-C0F2E0B9FA8E}
Display NameProgram Files
Folder TypeFIXED
Default Path%ProgramFiles% (%SystemDrive%\Program Files)
CSIDL EquivalentCSIDL_PROGRAM_FILESX86
Legacy Display NameProgram Files
Legacy Default Path%ProgramFiles% (%SystemDrive%\Program Files)


FOLDERID_ProgramFilesCommonSee Remarks for more information.
GUID{F7F1ED05-9F6D-47A2-AAAE-29D317C6F066}
Display NameCommon Files
Folder TypeFIXED
Default Path%ProgramFiles%\Common Files
CSIDL EquivalentCSIDL_PROGRAM_FILES_COMMON
Legacy Display NameCommon Files
Legacy Default Path%ProgramFiles%\Common Files


FOLDERID_ProgramFilesCommonX64See Remarks for more information.
GUID{6365D5A7-0F0D-45E5-87F6-0DA56B6A4F7D}
Display NameCommon Files
Folder TypeFIXED
Default Path%ProgramFiles%\Common Files
CSIDL EquivalentNone
Legacy Display NameCommon Files
Legacy Default Path%ProgramFiles%\Common Files


FOLDERID_ProgramFilesCommonX86See Remarks for more information.
GUID{DE974D24-D9C6-4D3E-BF91-F4455120B917}
Display NameCommon Files
Folder TypeFIXED
Default Path%ProgramFiles%\Common Files
CSIDL EquivalentCSIDL_PROGRAM_FILES_COMMONX86
Legacy Display NameCommon Files
Legacy Default Path%ProgramFiles%\Common Files


FOLDERID_Programs
GUID{A77F5D77-2E2B-44C3-A6A2-ABA601054A51}
Display NamePrograms
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Start Menu\Programs
CSIDL EquivalentCSIDL_PROGRAMS
Legacy Display NamePrograms
Legacy Default Path%USERPROFILE%\Start Menu\Programs


FOLDERID_Public
GUID{DFDF76A2-C82A-4D63-906A-5644AC457385}
Display NamePublic
Folder TypeFIXED
Default Path%PUBLIC% (%SystemDrive%\Users\Public)
CSIDL EquivalentNone, new for Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PublicDesktop
GUID{C4AA340D-F20F-4863-AFEF-F87EF2E6BA25}
Display NamePublic Desktop
Folder TypeCOMMON
Default Path%PUBLIC%\Desktop
CSIDL EquivalentCSIDL_COMMON_DESKTOPDIRECTORY
Legacy Display NameDesktop
Legacy Default Path%ALLUSERSPROFILE%\Desktop


FOLDERID_PublicDocuments
GUID{ED4824AF-DCE4-45A8-81E2-FC7965083634}
Display NamePublic Documents
Folder TypeCOMMON
Default Path%PUBLIC%\Documents
CSIDL EquivalentCSIDL_COMMON_DOCUMENTS
Legacy Display NameShared Documents
Legacy Default Path%ALLUSERSPROFILE%\Documents


FOLDERID_PublicDownloads
GUID{3D644C9B-1FB8-4f30-9B45-F670235F79C0}
Display NamePublic Downloads
Folder TypeCOMMON
Default Path%PUBLIC%\Downloads
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PublicGameTasks
GUID{DEBF2536-E1A8-4c59-B6A2-414586476AEA}
Display NameGameExplorer
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\GameExplorer
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PublicLibraries
GUID{48DAF80B-E6CF-4F4E-B800-0E69D84EE384}
Display NameLibraries
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\Libraries
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PublicMusic
GUID{3214FAB5-9757-4298-BB61-92A9DEAA44FF}
Display NamePublic Music
Folder TypeCOMMON
Default Path%PUBLIC%\Music
CSIDL EquivalentCSIDL_COMMON_MUSIC
Legacy Display NameShared Music
Legacy Default Path%ALLUSERSPROFILE%\Documents\My Music


FOLDERID_PublicPictures
GUID{B6EBFB86-6907-413C-9AF7-4FC2ABF07CC5}
Display NamePublic Pictures
Folder TypeCOMMON
Default Path%PUBLIC%\Pictures
CSIDL EquivalentCSIDL_COMMON_PICTURES
Legacy Display NameShared Pictures
Legacy Default Path%ALLUSERSPROFILE%\Documents\My Pictures


FOLDERID_PublicRingtones
GUID{E555AB60-153B-4D17-9F04-A5FE99FC15EC}
Display NameRingtones
Folder TypeCOMMON
Default Path%ALLUSERSPROFILE%\Microsoft\Windows\Ringtones
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PublicUserTiles
GUID{0482af6c-08f1-4c34-8c90-e17ec98b1e17}
Display NamePublic Account Pictures
Folder TypeCOMMON
Default Path%PUBLIC%\AccountPictures
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_PublicVideos
GUID{2400183A-6185-49FB-A2D8-4A392A602BA3}
Display NamePublic Videos
Folder TypeCOMMON
Default Path%PUBLIC%\Videos
CSIDL EquivalentCSIDL_COMMON_VIDEO
Legacy Display NameShared Video
Legacy Default Path%ALLUSERSPROFILE%\Documents\My Videos


FOLDERID_QuickLaunch
GUID{52a4f021-7b75-48a9-9f6b-4b87a210bc8f}
Display NameQuick Launch
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Internet Explorer\Quick Launch
CSIDL EquivalentNone
Legacy Display NameQuick Launch
Legacy Default Path%APPDATA%\Microsoft\Internet Explorer\Quick Launch


FOLDERID_Recent
GUID{AE50C081-EBD2-438A-8655-8A092E34987A}
Display NameRecent Items
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Recent
CSIDL EquivalentCSIDL_RECENT
Legacy Display NameMy Recent Documents
Legacy Default Path%USERPROFILE%\Recent


FOLDERID_RecordedTVNot used. This value is undefined as of Windows 7.
FOLDERID_RecordedTVLibrary
GUID{1A6FDBA2-F42D-4358-A798-B74D745926C5}
Display NameRecorded TV
Folder TypeCOMMON
Default Path%PUBLIC%\RecordedTV.library-ms
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_RecycleBinFolder
GUID{B7534046-3ECB-4C18-BE4E-64CD4CB7D6AC}
Display NameRecycle Bin
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentCSIDL_BITBUCKET
Legacy Display NameRecycle Bin
Legacy Default PathNot applicable—virtual folder


FOLDERID_ResourceDir
GUID{8AD10C31-2ADB-4296-A8F7-E4701232C972}
Display NameResources
Folder TypeFIXED
Default Path%windir%\Resources
CSIDL EquivalentCSIDL_RESOURCES
Legacy Display NameResources
Legacy Default Path%windir%\Resources


FOLDERID_Ringtones
GUID{C870044B-F49E-4126-A9C3-B52A1FF411E8}
Display NameRingtones
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\Ringtones
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_RoamingAppData
GUID{3EB685DB-65F9-4CF6-A03A-E3EF65729F3D}
Display NameRoaming
Folder TypePERUSER
Default Path%APPDATA% (%USERPROFILE%\AppData\Roaming)
CSIDL EquivalentCSIDL_APPDATA
Legacy Display NameApplication Data
Legacy Default Path%APPDATA% (%USERPROFILE%\Application Data)


点击这里给我发消息

4#
 楼主| 发表于 2015-4-1 23:38:14 | 只看该作者
FOLDERID_RoamedTileImages
GUID{AAA8D5A5-F1D6-4259-BAA8-78E7EF60835E}
Display NameRoamedTileImages
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\RoamedTileImages
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_RoamingTiles
GUID{00BCFC5A-ED94-4e48-96A1-3F6217F21990}
Display NameRoamingTiles
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\RoamingTiles
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SampleMusic
GUID{B250C668-F57D-4EE1-A63C-290EE7D1AA1F}
Display NameSample Music
Folder TypeCOMMON
Default Path%PUBLIC%\Music\Sample Music
CSIDL EquivalentNone
Legacy Display NameSample Music
Legacy Default Path%ALLUSERSPROFILE%\Documents\My Music\Sample Music


FOLDERID_SamplePictures
GUID{C4900540-2379-4C75-844B-64E6FAF8716B}
Display NameSample Pictures
Folder TypeCOMMON
Default Path%PUBLIC%\Pictures\Sample Pictures
CSIDL EquivalentNone
Legacy Display NameSample Pictures
Legacy Default Path%ALLUSERSPROFILE%\Documents\My Pictures\Sample Pictures


FOLDERID_SamplePlaylists
GUID{15CA69B3-30EE-49C1-ACE1-6B5EC372AFB5}
Display NameSample Playlists
Folder TypeCOMMON
Default Path%PUBLIC%\Music\Sample Playlists
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SampleVideos
GUID{859EAD94-2E85-48AD-A71A-0969CB56A6CD}
Display NameSample Videos
Folder TypeCOMMON
Default Path%PUBLIC%\Videos\Sample Videos
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SavedGames
GUID{4C5C32FF-BB9D-43b0-B5B4-2D72E54EAAA4}
Display NameSaved Games
Folder TypePERUSER
Default Path%USERPROFILE%\Saved Games
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SavedSearches
GUID{7d1d3a04-debb-4115-95cf-2f29da2920da}
Display NameSearches
Folder TypePERUSER
Default Path%USERPROFILE%\Searches
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Screenshots
GUID{b7bede81-df94-4682-a7d8-57a52620b86f}
Display NameScreenshots
Folder TypePERUSER
Default Path%USERPROFILE%\Pictures\Screenshots
CSIDL EquivalentNone, value introduced in Windows 8
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SEARCH_CSC
GUID{ee32e446-31ca-4aba-814f-a5ebd2fd6d5e}
Display NameOffline Files
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SearchHistory
GUID{0D4C3DB6-03A3-462F-A0E6-08924C41B5D4}
Display NameHistory
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\ConnectedSearch\History
CSIDL EquivalentNone, value introduced in Windows 8.1
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SearchHome
GUID{190337d1-b8ca-4121-a639-6d472d16972a}
Display NameSearch Results
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SEARCH_MAPI
GUID{98ec0e18-2098-4d44-8644-66979315a281}
Display NameMicrosoft Office Outlook
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SearchTemplates
GUID{7E636BFE-DFA9-4D5E-B456-D7B39851D8A9}
Display NameTemplates
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows\ConnectedSearch\Templates
CSIDL EquivalentNone, value introduced in Windows 8.1
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SendTo
GUID{8983036C-27C0-404B-8F08-102D10DCFD74}
Display NameSendTo
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\SendTo
CSIDL EquivalentCSIDL_SENDTO
Legacy Display NameSendTo
Legacy Default Path%USERPROFILE%\SendTo


FOLDERID_SidebarDefaultParts
GUID{7B396E54-9EC5-4300-BE0A-2482EBAE1A26}
Display NameGadgets
Folder TypeCOMMON
Default Path%ProgramFiles%\Windows Sidebar\Gadgets
CSIDL EquivalentNone, new for Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SidebarParts
GUID{A75D362E-50FC-4fb7-AC2C-A8BEAA314493}
Display NameGadgets
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Microsoft\Windows Sidebar\Gadgets
CSIDL EquivalentNone, new for Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SkyDrive
GUID{A52BBA46-E9E1-435f-B3D9-28DAA648C0F6}
Display NameOneDrive
Folder TypePERUSER
Default Path%USERPROFILE%\OneDrive
CSIDL EquivalentNone, value introduced in Windows 8.1
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SkyDriveCameraRoll
GUID{767E6811-49CB-4273-87C2-20F355E1085B}
Display NameCamera Roll
Folder TypePERUSER
Default Path%USERPROFILE%\OneDrive\Pictures\Camera Roll
CSIDL EquivalentNone, value introduced in Windows 8.1
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SkyDriveDocuments
GUID{24D89E24-2F19-4534-9DDE-6A6671FBB8FE}
Display NameDocuments
Folder TypePERUSER
Default Path%USERPROFILE%\OneDrive\Documents
CSIDL EquivalentNone, value introduced in Windows 8.1
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SkyDrivePictures
GUID{339719B5-8C47-4894-94C2-D8F77ADD44A6}
Display NamePictures
Folder TypePERUSER
Default Path%USERPROFILE%\OneDrive\Pictures
CSIDL EquivalentNone, value introduced in Windows 8.1
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_StartMenu
GUID{625B53C3-AB48-4EC1-BA1F-A1EF4146FC19}
Display NameStart Menu
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Start Menu
CSIDL EquivalentCSIDL_STARTMENU
Legacy Display NameStart Menu
Legacy Default Path%USERPROFILE%\Start Menu


FOLDERID_Startup
GUID{B97D20BB-F46A-4C97-BA10-5E3608430854}
Display NameStartup
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Start Menu\Programs\StartUp
CSIDL EquivalentCSIDL_STARTUP, CSIDL_ALTSTARTUP
Legacy Display NameStartup
Legacy Default Path%USERPROFILE%\Start Menu\Programs\StartUp


FOLDERID_SyncManagerFolder
GUID{43668BF8-C14E-49B2-97C9-747784D784B7}
Display NameSync Center
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SyncResultsFolder
GUID{289a9a43-be44-4057-a41b-587a76d7e7f9}
Display NameSync Results
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_SyncSetupFolder
GUID{0F214138-B1D3-4a90-BBA9-27CBC0C5389A}
Display NameSync Setup
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_System
GUID{1AC14E77-02E7-4E5D-B744-2EB1AE5198B7}
Display NameSystem32
Folder TypeFIXED
Default Path%windir%\system32
CSIDL EquivalentCSIDL_SYSTEM
Legacy Display Namesystem32
Legacy Default Path%windir%\system32


FOLDERID_SystemX86
GUID{D65231B0-B2F1-4857-A4CE-A8E7C6EA7D27}
Display NameSystem32
Folder TypeFIXED
Default Path%windir%\system32
CSIDL EquivalentCSIDL_SYSTEMX86
Legacy Display Namesystem32
Legacy Default Path%windir%\system32


FOLDERID_Templates
GUID{A63293E8-664E-48DB-A079-DF759E0509F7}
Display NameTemplates
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Templates
CSIDL EquivalentCSIDL_TEMPLATES
Legacy Display NameTemplates
Legacy Default Path%USERPROFILE%\Templates


FOLDERID_TreePropertiesNot used in Windows Vista. Unsupported as of Windows 7.
FOLDERID_UserPinned
GUID{9E3995AB-1F9C-4F13-B827-48B24B6C7174}
Display NameUser Pinned
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User        Pinned
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


点击这里给我发消息

5#
 楼主| 发表于 2015-4-1 23:38:41 | 只看该作者
FOLDERID_UserProfiles
GUID{0762D272-C50A-4BB0-A382-697DCD729B80}
Display NameUsers
Folder TypeFIXED
Default Path%SystemDrive%\Users
CSIDL EquivalentNone, new for Windows Vista
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_UserProgramFiles
GUID{5CD7AEE2-2219-4A67-B85D-6C9CE15660CB}
Display NamePrograms
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Programs
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_UserProgramFilesCommon
GUID{BCBD3057-CA5C-4622-B42D-BC56DB0AE516}
Display NamePrograms
Folder TypePERUSER
Default Path%LOCALAPPDATA%\Programs\Common
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_UsersFiles
GUID{f3ce0f7c-4901-4acc-8648-d5d44b04ef8f}
Display NameThe user's full name (for instance, Jean Philippe Bagel) entered when the user account was created.
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_UsersLibraries
GUID{A302545D-DEFF-464b-ABE8-61C8648D939B}
Display NameLibraries
Folder TypeVIRTUAL
Default PathNot applicable—virtual folder
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Videos
GUID{18989B1D-99B5-455B-841C-AB7C74E4DDFC}
Display NameVideos
Folder TypePERUSER
Default Path%USERPROFILE%\Videos
CSIDLCSIDL_MYVIDEO
Legacy Display NameMy Videos
Legacy Default Path%USERPROFILE%\My Documents\My Videos


FOLDERID_VideosLibrary
GUID{491E922F-5643-4AF4-A7EB-4E7A138D8174}
Display NameVideos
Folder TypePERUSER
Default Path%APPDATA%\Microsoft\Windows\Libraries\Videos.library-ms
CSIDL EquivalentNone, value introduced in Windows 7
Legacy Display NameNot applicable
Legacy Default PathNot applicable


FOLDERID_Windows
GUID{F38BF404-1D43-42F2-9305-67DE0B28FC23}
Display NameWindows
Folder TypeFIXED
Default Path%windir%
CSIDL EquivalentCSIDL_WINDOWS
Legacy Display NameWINDOWS
Legacy Default Path%windir%


RemarksThe interpretation of certain KNOWNFOLDERID values depends on whether the folder is part of a 32-bit or 64-bit application and whether that application is running on a 32-bit or 64-bit operating system. If your application needs to distinguish between, for example, Program Files and Program Files (x86), you must use the right KNOWNFOLDERID for the situation.                  
The following tables summarize the KNOWNFOLDERID use in those cases.
FOLDERID_ProgramFiles
Operating SystemApplicationKNOWNFOLDERIDDefault PathCSIDL Equivalent
32 bit32 bitFOLDERID_ProgramFiles%SystemDrive%\Program FilesCSIDL_PROGRAM_FILES
32 bit32 bitFOLDERID_ProgramFilesX86%SystemDrive%\Program FilesCSIDL_PROGRAM_FILESX86
32 bit32 bitFOLDERID_ProgramFilesX64 (not supported under 32-bit operating systems)Not applicableNot applicable
64 bit64 bitFOLDERID_ProgramFiles%SystemDrive%\Program FilesCSIDL_PROGRAM_FILES
64 bit64 bitFOLDERID_ProgramFilesX86%SystemDrive%\Program Files (x86)CSIDL_PROGRAM_FILESX86
64 bit64 bitFOLDERID_ProgramFilesX64%SystemDrive%\Program FilesNone
64 bit32 bitFOLDERID_ProgramFiles%SystemDrive%\Program Files (x86)CSIDL_PROGRAM_FILES
64 bit32 bitFOLDERID_ProgramFilesX86%SystemDrive%\Program Files (x86)CSIDL_PROGRAM_FILESX86
64 bit32 bitFOLDERID_ProgramFilesX64 (not supported for 32-bit applications)Not applicableNot applicable


FOLDERID_ProgramFilesCommon
Operating SystemApplicationKNOWNFOLDERIDDefault PathCSIDL Equivalent
32 bit32 bitFOLDERID_ProgramFilesCommon%ProgramFiles%\Common FilesCSIDL_PROGRAM_FILES_COMMON
32 bit32 bitFOLDERID_ProgramFilesCommonX86%ProgramFiles%\Common FilesCSIDL_PROGRAM_FILES_COMMONX86
32 bit32 bitFOLDERID_ProgramFilesCommonX64 (undefined)Not applicableNot applicable
64 bit64 bitFOLDERID_ProgramFilesCommon%ProgramFiles%\Common FilesCSIDL_PROGRAM_FILES_COMMON
64 bit64 bitFOLDERID_ProgramFilesCommonX86%ProgramFiles(x86)%\Common FilesCSIDL_PROGRAM_FILES_COMMONX86
64 bit64 bitFOLDERID_ProgramFilesCommonX64%ProgramFiles%\Common FilesNone
64 bit32 bitFOLDERID_ProgramFilesCommon%ProgramFiles(x86)%\Common FilesCSIDL_PROGRAM_FILES_COMMON
64 bit32 bitFOLDERID_ProgramFilesCommonX86%ProgramFiles(x86)%\Common FilesCSIDL_PROGRAM_FILES_COMMONX86
64 bit32 bitFOLDERID_ProgramFilesCommonX64%ProgramFiles%\Common FilesNone


FOLDERID_System
Operating SystemApplicationKNOWNFOLDERIDDefault PathCSIDL Equivalent
32 bit32 bitFOLDERID_System%windir%\system32CSIDL_SYSTEM
32 bit32 bitFOLDERID_SystemX86%windir%\system32CSIDL_SYSTEMX86
64 bit64 bitFOLDERID_System%windir%\system32CSIDL_SYSTEM
64 bit64 bitFOLDERID_SystemX86%windir%\syswow64CSIDL_SYSTEMX86
64 bit32 bitFOLDERID_System%windir%\system32CSIDL_SYSTEM
64 bit32 bitFOLDERID_SystemX86%windir%\syswow64CSIDL_SYSTEMX86


We have used environment strings to provide generic paths throughout this topic. The following tables give examples of the paths those environment strings represent. In some cases, these paths might not match those on a particular computer because of choices made during installation or later folder redirection. Note that some paths have changed for Windows Vista.                 

Windows Vista and later
Environment StringExample Path
%ALLUSERSPROFILE%C:\ProgramData
%APPDATA%C:\Users\username\AppData\Roaming
%LOCALAPPDATA%C:\Users\username\AppData\Local
%ProgramData%C:\ProgramData
%ProgramFiles%C:\Program Files
%ProgramFiles(x86)%C:\Program Files (x86)
%PUBLIC%C:\Users\Public
%SystemDrive%C:
%USERPROFILE%C:\Users\username
%windir%C:\Windows


Windows XP and earlier
Environment StringExample Path
%ALLUSERSPROFILE%C:\Documents and Settings\All Users
%APPDATA%C:\Documents and Settings\username\Application Data
%ProgramFiles%C:\Program Files
%SystemDrive%C:
%USERPROFILE%C:\Documents and Settings\username
%windir%C:\Windows

Requirements
Header
Knownfolders.h

您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|站长邮箱|小黑屋|手机版|Office中国/Access中国 ( 粤ICP备10043721号-1 )  

GMT+8, 2024-11-25 07:31 , Processed in 0.099307 second(s), 32 queries .

Powered by Discuz! X3.3

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表