在 windows 中有些特殊文件夹或隐藏目录可以用 shell 命令打开。例如系统下载目录,按 Win + R 输入 shell:Downloads 再回车就可以打开。编写程序时也可以用代码调用 shell 命令打开目录,例如用 aardio 可以这样写:
raw.execute("shell:Downloads");那么 Windows 到底有多少这样的目录呢?!我用 aardio 写了一个小程序从注册表查找并列出这些目录,源代码在「 aardio 范例 > 文件操作 > 特殊路径 > 打开隐藏目录 」可以找到:
在 Windows 10 运行上面的程序,得到的全部目录如下:
shell:ConnectionsFolder
shell:Desktop
shell:Playlists
shell:ProgramFiles
shell:OneDriveCameraRoll
shell:AppsFolder
shell:CommonRingtones
shell:PrintHood
shell:Local Pictures
shell:AppDataFavorites
shell:CD Burning
shell:3D Objects
shell:Common Start Menu Places
shell:SearchHomeFolder
shell:OEM Links
shell:Device Metadata Store
shell:SyncResultsFolder
shell:SyncCenterFolder
shell:MAPIFolder
shell:VideosLibrary
shell:AppMods
shell:RecycleBinFolder
shell:My Video
shell:Downloads
shell:SystemCertificates
shell:Local Downloads
shell:AccountPictures
shell:Roamed Tile Images
shell:Application Shortcuts
shell:OneDrivePictures
shell:Cookies
shell:UserProgramFiles
shell:PrintersFolder
shell.NETworkPlacesFolder
shell:ChangeRemoveProgramsFolder
shell:Local Videos
shell:Recorded Calls
shell:Quick Launch
shell:MyComputerFolder
shell:Start Menu
shell:SearchTemplatesFolder
shell:Administrative Tools
shell:Contacts
shell:DocumentsLibrary
shell:CommonMusic
shell:SavedPictures
shell:OneDrive
shell:CommonVideo
shell:Fonts
shell:InternetFolder
shell:Programs
shell:Common Startup
shell:ThisDeviceFolder
shell:Common Desktop
shell:AppDataProgramData
shell:SyncSetupFolder
shell:Local Documents
shell:Local AppData
shell:CredentialManager
shell:AppDataDesktop
shell:Common Templates
shell:PublicGameTasks
shell:Common Programs
shell:UsersLibrariesFolder
shell:Links
shell:AppDataDocuments
shell:Ringtones
shell:OneDriveMusic
shell:CameraRollLibrary
shell:DpapiKeys
shell:GameTasks
shell:CommonPictures
shell:CommonDownloads
shell:PhotoAlbums
shell:SavedGames
shell:OneDriveDocuments
shell:History
shell:SearchHistoryFolder
shell:ProgramFilesCommonX86
shell:PicturesLibrary
shell:CSCFolder
shell:Roaming Tiles
shell:AddNewProgramsFolder
shell:RecordedTVLibrary
shell:Templates
shell:UsersFilesFolder
shell:Captures
shell:Common Documents
shell:Development Files
shell:MusicLibrary
shell:ThisPCDesktopFolder
shell:Common AppData
shell:Common Administrative Tools
shell:UserProgramFilesCommon
shell:LocalAppDataLow
shell:Searches
shell:Personal
shell:My Pictures
shell:UserProfiles
shell:Public
shell:AppUpdatesFolder
shell:Windows
shell:System
shell:SystemX86
shell:CryptoKeys
shell:SavedPicturesLibrary
shell:NetHood
shell:Profile
shell:Camera Roll
shell:Libraries
shell:PublicLibraries
shell:Favorites
shell:ImplicitAppShortcuts
shell:Startup
shell:HomeGroupCurrentUserFolder
shell:ConflictFolder
shell:LocalizedResourcesDir
shell:Cache
shell:HomeGroupFolder
shell:Screenshots
shell:Recent
shell:ProgramFilesCommon
shell:Common Start Menu
shell:Local Music
shell:ControlPanelFolder
shell:AppData
shell:User Pinned
shell:ProgramFilesX86
shell:Original Images
shell:SendTo
shell:ResourceDir
shell:PublicAccountPictures
shell:My Music
shell:::{00020D75-0000-0000-C000-000000000046}
shell:::{00021400-0000-0000-C000-000000000046} //Desktop
shell:::{018D5C66-4533-4307-9B53-224DE2ED1FE6} //OneDrive
shell:::{025A5937-A6BE-4686-A844-36FE4BEC8B6D} //Power Options
shell:::{031E4825-7B94-4dc3-B131-E946B44C8DD5} //UsersLibraries
shell:::{04731B67-D933-450a-90E6-4ACD2E9408FE} //CLSID_SearchFolder
shell:::{088e3905-0323-4b02-9826-5d99428e115f}
shell:::{0AFACED1-E828-11D1-9187-B532F1E9575D} //Folder Shortcut
shell:::{0C39A5CF-1A7A-40C8-BA74-8900E6DF5FCD}
shell:::{0CD7A5C0-9F37-11CE-AE65-08002B2E1262} //Cabinet Shell Folder
shell:::{0DB7E03F-FC29-4DC6-9020-FF41B59E513A}
shell:::{0DF44EAA-FF21-4412-828E-260A8728E7F1} //Taskbar
shell:::{0E5AAE11-A475-4c5b-AB00-C66DE400274E} //Shell File System Folder
shell:::{11016101-E366-4D22-BC06-4ADA335C892B} //IE History and Feeds Shell Data Source for Windows Search
shell:::{1206F5F1-0569-412C-8FEC-3204630DFB70} //Credential Manager
shell:::{15eae92e-f17a-4431-9f28-805e482dafd4} //Install New Programs
shell:::{17cd9488-1228-4b2f-88ce-4298e93e0966} //Set User Defaults
shell:::{
19ADA707-057F-45EF-8985-305FEE233FAB} //wps云文档
shell:::{1bef2128-2f96-4500-ba7c-098dc0049cb2} //CLSID_DBFolderBoth
shell:::{1CF1260C-4DD0-4ebb-811F-33C572699FDE}
shell:::{1D2680C9-0E2A-469d-B787-065558BC7D43} //Fusion Cache
shell:::{1f3427c8-5c10-4210-aa03-2ee45287d668} //User Pinned
shell:::{1FA9085F-25A2-489B-85D4-86326EEDCD87} //Manage Wireless Networks
shell:::{208D2C60-3AEA-1069-A2D7-08002B30309D} //Network
shell:::{20D04FE0-3AEA-1069-A2D8-08002B30309D} //This PC
shell:::{21EC2020-3AEA-1069-A2DD-08002B30309D} //All Control Panel Items
shell:::{2227A280-3AEA-1069-A2DE-08002B30309D} //Printers
shell:::{22877a6d-37a1-461a-91b0-dbda5aaebc99} //Recent Places Folder
shell:::{241D7C96-F8BF-4F85-B01F-E2B043341A4B} //Workspaces Center
shell:::{24ad3ad4-a569-4530-98e1-ab02f9417aa8}
shell:::{2559a1f0-21d7-11d4-bdaf-00c04f60b9f0} //Search
shell:::{2559a1f2-21d7-11d4-bdaf-00c04f60b9f0} //Windows Security
shell:::{2559a1f3-21d7-11d4-bdaf-00c04f60b9f0} //Run...
shell:::{2559a1f5-21d7-11d4-bdaf-00c04f60b9f0} //E-mAIl
shell:::{2559a1f7-21d7-11d4-bdaf-00c04f60b9f0} //Set Program Access and Defaults
shell:::{2559a1f8-21d7-11d4-bdaf-00c04f60b9f0}
shell:::{267cf8a9-f4e3-41e6-95b1-af881be130ff} //Location Folder
shell:::{26EE0668-A00A-44D7-9371-BEB064C98683} //Control Panel
shell:::{28803F59-3A75-4058-995F-4EE5503B023C} //Bluetooth Devices
shell:::{289978AC-A101-4341-A817-21EBA7FD046D} //Sync Center Conflict Folder
shell:::{289AF617-1CC3-42A6-926C-E6A863F0E3BA} //DLNA Media Servers Data Source
shell:::{2965e715-eb66-4719-b53f-1672673bbefa} //Results Folder
shell:::{2E9E59C0-B437-4981-A647-9C34B9B90891} //Sync Setup Folder
shell:::{3080F90D-D7AD-11D9-BD98-0000947B0257} //Show Desktop
shell:::{3080F90E-D7AD-11D9-BD98-0000947B0257} //Window Switcher
shell:::{3134ef9c-6b18-4996-ad04-ed5912e00eb5}
shell:::{323CA680-C24D-4099-B94D-446DD2D7249E} //Favorites
shell:::{328B0346-7EAF-4BBE-A479-7CB88A095F5B} //LayoutFolder
shell:::{35786D3C-B075-49b9-88DD-029876E11C01} //Portable Devices
shell:::{374DE290-123F-4565-9164-39C4925E467B}
shell:::{38A98528-6CBF-4CA9-8DC0-B1E1D10F7B1B}
shell:::{3936E9E4-D92C-4EEE-A85A-BC16D5EA0819} //Frequent Places Folder
shell:::{3ADD1653-EB32-4cb0-BBD7-DFA0ABB5ACCA}
shell:::{3dfdf296-dbec-4fb4-81d1-6a3438bcf4de}
shell:::{3f6bc534-dfa1-4ab4-ae54-ef25a74e0107} //System Restore
shell:::{418c8b64-5463-461d-88e0-75e2afa3c6fa} //Explorer Browser Results Folder
shell:::{4234d49b-0245-4df3-b780-3893943456e1} //Applications
shell:::{4336a54d-038b-4685-ab02-99bb52d3fb8b} //Public Folder
shell:::{437ff9c0-a07f-4fa0-af80-84b6c6440a16} //Command Folder
shell:::{450D8FBA-AD25-11D0-98A8-0800361B1103}
shell:::{4564b25e-30cd-4787-82ba-39e73a750b14} //Recent Items Instance Folder
shell:::{48e7caab-b918-4e58-a94d-505519c795dc} //Start Menu Folder
shell:::{5399E694-6CE5-4D6C-8FCE-1D8870FDCBA0} //Control Panel command object for Start menu and desktop
shell:::{58E3C745-D971-4081-9034-86E34B30836A}
shell:::{59031a47-3f72-44a7-89c5-5595fe6b30ee} //UsersFiles
shell:::{5b934b42-522b-4c34-bbfe-37a3ef7b9c90} //This Device
shell:::{5E5F29CE-E0A8-49D3-AF32-7A7BDC173478} //This PC
shell:::{5ED4F38C-D3FF-4D61-B506-6820320AEBFE} //PC Settings
shell:::{
5FCD4425-CA3A-48F4-A57C-B8A75C32ACB1} //WPS网盘
shell:::{60632754-c523-4b62-b45c-4172da012619} //User Accounts
shell:::{63da6ec0-2e98-11cf-8d82-444553540000} //Microsoft FTP Folder
shell:::{645FF040-5081-101B-9F08-00AA002F954E} //Recycle Bin
shell:::{64693913-1c21-4f30-a98f-4e52906d3b56} //CLSID_AppInstanceFolder
shell:::{6785BFAC-9D2D-4be5-B7E2-59937E8FB80A} //Other Users Folder
shell:::{679f85cb-0220-4080-b29b-5540cc05aab6}
shell:::{67CA7650-96E6-4FDD-BB43-A8E774F73A57} //HomeGroup Control Panel
shell:::{6DFD7C5C-2451-11d3-A299-00C04F8EF6AF} //Folder Options
shell:::{7007ACC7-3202-11D1-AAD2-00805FC1270E} //Network Connections
shell:::{71D99464-3B6B-475C-B241-E15883207529} //Sync Results Folder
shell:::{72b36e70-8700-42d6-a7f7-c9ab3323ee51} //Search Connector Folder
shell:::{7A9D77BD-5403-11d2-8785-2E0420524153} //User Accounts
shell:::{
7AE6DE87-C956-4B40-9C89-3D166C9841D3} //WPS网盘
shell:::{7b81be6a-ce2b-4676-a29e-eb907a5126c5} //Programs and Features
shell:::{7BD29E00-76C1-11CF-9DD0-00A0C9034933} //Temporary Internet Files
shell:::{7BD29E01-76C1-11CF-9DD0-00A0C9034933} //Temporary Internet Files
shell:::{863aa9fd-42df-457b-8e4d-0de1b8015c60} //Remote Printers
shell:::{871C5380-42A0-1069-A2EA-08002B30309D} //Internet Folder
shell:::{88C6C381-2E85-11D0-94DE-444553540000} //ActiveX Cache Folder
shell:::{896664F7-12E1-490f-8782-C0835AFD98FC} //Libraries delegate folder that appears in Users Files Folder
shell:::{89D83576-6BD1-4c86-9454-BEB04E94C819} //@%systemroot%system32mssvp.dll,-110
shell:::{8E908FC9-BECC-40f6-915B-F4CA0E70D03D} //Network and Sharing Center
shell:::{93412589-74D4-4E4E-AD0E-E0CB621440FD} //Font Settings
shell:::{9343812e-1c37-4a49-a12e-4b2d810d956b} //CLSID_SearchHome
shell:::{98F275B4-4FFF-11E0-89E2-7B86DFD72085} //CLSID_StartMenuLauncherProviderFolder
shell:::{992CFFA0-F557-101A-88EC-00DD010CCC48} //Network Connections
shell:::{9a096bb5-9dc3-4d1c-8526-c3cbf991ea4e} //IE RSS Feeds Folder
shell:::{9C60DE1E-E5FC-40f4-A487-460851A8D915} //AutoPlay
shell:::{9C73F5E5-7AE7-4E32-A8E8-8D23B85255BF} //Sync Center Folder
shell:::{9DB7A13C-F208-4981-8353-73CC61AE2783} //Previous Versions
shell:::{a00ee528-ebd9-48b8-944a-8942113d46ac} //CLSID_StartMenuCommandingProviderFolder
shell:::{A0953C92-50DC-43bf-BE83-3742FED03C9C}
shell:::{a3c3d402-e56c-4033-95f7-4885e80b0111} //Previous Versions Results Delegate Folder
shell:::{a5a3563a-5755-4a6f-854e-afa3230b199f} //Library Folder
shell:::{a6482830-08eb-41e2-84c1-73920c2badb9} //Removable Storage Devices
shell:::{A8A91A66-3A7D-4424-8D24-04E180695C7A} //Device Center
shell:::{A8CDFF1C-4878-43be-B5FD-F8091C1C60D0}
shell:::{AEE2420F-D50E-405C-8784-363C582BF45A} //DevicePairingFolder Initialization
shell:::{b155bdf8-02f0-451e-9a26-ae317cfd7779} //delegate folder that appears in Computer
shell:::{b2952b16-0e07-4e5a-b993-58c52cb94cae} //CLSID_DBFolder
shell:::{B4BFCC3A-DB2C-424C-B029-7FE99A87C641}
shell:::{B4FB3F98-C1EA-428d-A78A-D1F5659CBA93} //Other Users Folder
shell:::{BB06C0E4-D293-4f75-8A90-CB05B6477EEE} //System
shell:::{BB64F8A7-BEE7-4E1A-AB8D-7D8273F7FDB6} //Security and Maintenance CPL
shell:::{BC48B32F-5910-47F5-8570-5074A8A5636A} //Sync Results Delegate Folder
shell:::{BD7A2E7B-21CB-41b2-A086-B309680C6B7E} //@%systemroot%system32mssvp.dll,-112
shell:::{BD84B380-8CA2-1069-AB1D-08000948F534} //Microsoft Windows Font Folder
shell:::{C2B136E2-D50E-405C-8784-363C582BF43E} //DeviceCenter Initialization
shell:::{c57a6066-66a3-4d91-9eb9-41532179f0a5} //AppSuggestedLocations
shell:::{D2035EDF-75CB-4EF1-95A7-410D9EE17170} //DLNA Content Directory Data Source
shell:::{D20EA4E1-3957-11d2-A40B-0C5020524153} //Administrative Tools
shell:::{d3162b92-9365-467a-956b-92703aca08af}
shell:::{d34a6ca6-62c2-4c34-8a7c-14709c1ad938} //Common Places FS Folder
shell:::{D4480A50-BA28-11d1-8E75-00C04FA31A86} //Add Network Place
shell:::{d450a8a1-9568-45c7-9c0e-b4f9fb4537bd} //Installed Updates
shell:::{D555645E-D4F8-4c29-A827-D93C859C4F2A} //Ease of Access
shell:::{daf95313-e44d-46af-be1b-cbacea2c3065} //CLSID_StartMenuProviderFolder
shell:::{DFFACDC5-679F-4156-8947-C5C76BC0B67F} //delegate folder that appears in Users Files Folder
shell:::{e345f35f-9397-435c-8f95-4e922c26259e} //CLSID_StartMenuPathCompleteProviderFolder
shell:::{E413D040-6788-4C22-957E-175D1C513A34} //Sync Center Conflict Delegate Folder
shell:::{E7E4BC40-E76A-11CE-A9BB-00AA004AE837} //Shell DocObject Viewer
shell:::{E88DCCE0-B7B3-11d1-A9F0-00AA0060FA31} //CompressedFolder
shell:::{ed50fc29-b964-48a9-afb3-15ebb9b97f36} //printhood delegate folder
shell:::{ED7BA470-8E54-465E-825C-99712043E01C} //All Tasks
shell:::{EDC978D6-4D53-4b2f-A265-5805674BE568} //StreamBackedFolder
shell:::{F02C1A0D-BE21-4350-88B0-7367FC96EF3C} //Computers and Devices
shell:::{F1390A9A-A3F4-4E5D-9C5F-98F3BD8D935C} //Sync Setup Delegate Folder
shell:::{F3364BA0-65B9-11CE-A9BA-00AA004AE837} //Shell File System Folder
shell:::{F5175861-2688-11d0-9C5E-00AA00A45957} //Subscription Folder
shell:::{F5FB2C77-0E2F-4A16-A381-3E560C68BC83} //Removable Drives
shell:::{f8278c54-a712-415b-b593-b77a2be0dda9} //This Device
shell:::{f86fa3ab-70d2-4fc7-9c99-fcbf05467f3a}
shell:::{f8c2ab3b-17bc-41da-9758-339d7dbf2d88} //Previous Versions Results Folder
shell:::{
FC1125BA-C584-4947-8750-D907269E3D11} //爱奇艺热播视频
shell:::{FF393560-C2A7-11CF-BFF4-444553540000} //History