如何使用Windows的shell命令打开隐藏的系统文件夹

Windows中的许多隐藏系统文件夹在Windows注册表中与类ID(CLSID)键、特殊文件夹名和文件夹在PC上的位置一起标识。将这些特殊的文件夹名与Shell命令一起使用意味着,即使是隐藏在文件系统中的隐藏文件夹,也总是只需敲击几个键即可。

什么是CLSID密钥?

特定的文件夹位置(以及一些软件组件)被赋予一个CLSID,允许Windows和其他程序在不知道其确切名称的情况下轻松识别它们。CLSID项、通用名称和这些文件夹的完整路径作为条目存储在Windows注册表中。这有点类似于网络上的每台计算机都有一个便于您记忆的常规名称-当您使用计算机名称时,Windows会代表您查找该计算机的IP地址。

同样,程序可以对Windows结构中的文件夹使用通用名称,并依赖于作为CLSID项存储在注册表中的实际位置。我们将使用的外壳对象列在注册表的以下位置:

HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions

在文件夹描述键内的长列表中的每个子键代表一个特殊的文件夹。每个键的名称是该文件夹的CLSID。单击其中任何一个,您将看到附加到该键的几个重要值,例如name(文件夹的通用名称)和RelativePath(文件夹所在的实际路径)。

如何发出shell命令

那么,您可以如何处理这些信息呢?您可以发出一个名为Shell的特殊命令,后跟文件夹的通用名称来打开该文件夹。如果这听起来有点简单,那就是全部意义所在。您可以从运行对话框(Windows+R)、Windows文件资源管理器地址栏甚至Internet Explorer地址栏发出Shell命令。只需使用以下格式键入命令:

shell:

这里有一个例子。假设您要打开包含与您的Windows帐户关联的图片的文件夹。无需向下浏览到帐户的AppData文件夹(顺便说一句,这是一个隐藏的文件夹),然后找到包含帐户图片的文件夹,您只需启动Run对话框,发出以下命令,然后按Enter键即可:

shell:AccountPictures

即使你还不是一个键盘迷,也很难争辩说这不是更快。

有哪些文件夹名称可用?

这一切都很好,但为了节省稍后浏览文件夹的时间,是否真的值得梳理所有查找文件夹名的注册表项呢?也许,也许不是。幸运的是,这就是你找我们的目的。下面是在shell命令之后可以使用的所有文件夹名的列表,以及这些文件夹的相对位置。

Shell:AccountPictures-%AppData%\Microsoft\Windows\AccountPictures。 Shell:AddNewProgramsFolder-控制面板\所有控制面板项目\获取程序。 Shell:管理工具-%AppData%\Microsoft\Windows\Start Menu\Programs\Administration Tools。 外壳程序:APPDATA-%APPDATA%。 Shell:应用程序快捷方式-%LocalAppData%\Microsoft\Windows\Application快捷方式。 Shell:AppsFolder-Applications。 Shell:AppUpdatesFolder-安装的更新。 Shell:缓存-%LocalAppData%\Microsoft\Windows\INetCache。 Shell:Camera Roll-%UserProfile%\Pictures\Camera Roll。 Shell:CD刻录-%LocalAppData%\Microsoft\Windows\Burn\Burn。 Shell:ChangeRemoveProgramsFolder-Control Panel\All Control Panel Items\Programs and Feature。 Shell:通用管理工具-%ProgramData%\Microsoft\Windows\Start Menu\Programs\Administration Tools。 外壳程序:公共APPDATA-%ProgramData%。 Shell:通用桌面-%Public%\Desktop。 Shell:公共文档-%Public%\Documents。 Shell:CommonDownloads-%Public%\Downloads。 Shell:CommonMusic-%Public%\Music。 Shell:CommonPictures-%Public%\Pictures。 Shell:Common Programs-%ProgramData%\Microsoft\Windows\Start Menu\Programs。 Shell:CommonRingtones-%ProgramData%\Microsoft\Windows\ringtones。 Shell:通用开始菜单-%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup。 Shell:Common Startup-%ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup。 Shell:通用模板-%ProgramData%\Microsoft\Windows\Templates。 shell:CommonVideo-%Public%\Videos。 Shell:ConflictFolder-Control Panel\All Control Panel Items\Sync Center\Conflicts。 Shell:ConnectionsFolder-Control Panel\All Control Panel Items\Network Connections。 外壳:联系人-%UserProfile%\联系人。 外壳:ControlPanelFolder-控制面板\所有控制面板项目。 外壳:Cookies-%LocalAppData%\Microsoft\Windows\INetCookies。 外壳:Cookies\Low-%LocalAppData%\Microsoft\Windows\INetCookies\Low。 外壳程序:CredentialManager-%AppData%\Microsoft\Credentials。 外壳程序:CryptoKeys-%AppData%\Microsoft\Crypto。 外壳:台式机-台式机。 外壳:设备元数据存储-%ProgramData%\Microsoft\Windows\DeviceMetadataStore。 Shell:DocumentsLibrary-Libraries\Documents。 Shell:Downloads-%UserProfile%\Downloads。 外壳程序:dPapiKeys-%AppData%\MICROSOFT\PROTECT。 Shell:收藏夹-%UserProfile%\Favorites。 外壳:Fonts-%WinDir%\Fonts。 贝壳:游戏-小游戏。 Shell:GameTasks-%LocalAppData%\Microsoft\Windows\GameExplorer。 Shell:历史记录-%LocalAppData%\Microsoft\Windows\History。 Shell:HomeGroupCurrentUserFolder-Homegroup\(用户名)。 Shell:HomeGroupFolder-Homegroup。 Shell:IMPLICTICTAPSHORTCUTS-%APPDATA%\Microsoft\Internet Explorer\Quick Launch\User Pinked\IMPLICTICTAPSHORTCUTS。 Shell:InternetFolder-Internet Explorer。 外壳:库-库。 Shell:链接-%UserProfile%\Links。 Shell:本地AppData-%LocalAppData%。 Shell:LocalAppDataLow-%UserProfile%\AppData\LocalLow。 Shell:MusicLibrary-Library\Music。 外壳:MyComputerFolder-这台电脑。 Shell:我的音乐-%UserProfile%\Music。 Shell:我的图片-%UserProfile%\Pictures。 Shell:我的视频-%UserProfile%\Videos。 Shell:NetHood-%AppData%\Microsoft\Windows\Network快捷方式。 外壳:NetworkPlacesFolder-Network。 外壳:OneDrive-OneDrive。 外壳:OneDriveCameraRoll-%UserProfile%\OneDrive\Pictures\Camera Roll。 外壳程序:OneDriveDocuments-%UserProfile%\OneDrive\Documents。 外壳:OneDriveMusic-%UserProfile%\OneDrive\Music。 Shell:OneDrivePictures-%UserProfile%\OneDrive\Pictures。 Shell:Personal-%UserProfile%\Documents。 Shell:PicturesLibrary-Library\Pictures。 Shell:打印机文件夹-所有控制面板项目\打印机。 Shell:PrintHood-%AppData%\Microsoft\Windows\Printer快捷方式。 外壳:配置文件-%UserProfile%。 Shell:ProgramFiles-%ProgramFiles%。 Shell:ProgramFilesCommon-%ProgramFiles%\Common Files。 Shell:ProgramFilesCommonX64-%ProgramFiles%\Common Files(仅限64位Windows)。 Shell:ProgramFilesCommonX86-%ProgramFiles(X86)%\Common Files(仅限64位Windows)。 Shell:ProgramFilesX64-%ProgramFiles%(仅限64位Windows)。 Shell:ProgramFilesX86-%ProgramFiles(X86)%(仅限64位Windows)。 Shell:Programs-%AppData%\Microsoft\Windows\Start Menu\Programs。 Shell:PUBLIC-%PUBLIC%。 Shell:PublicAccountPictures-%Public%\AccountPictures。 Shell:PublicGameTasks-%ProgramData%\Microsoft\Windows\GameExplorer。 shell:public library-%Public%\Libraries。 Shell:快速启动-%AppData%\Microsoft\Internet Explorer\快速启动。 Shell:Recent-%AppData%\Microsoft\Windows\Recent。 外壳:RecordedTVLibrary-Library\RecordedTV。 外壳:RecycleBinFolder-回收站。 Shell:ResourceDir-%WinDir%\Resources。 外壳:铃声-%ProgramData%\Microsoft\Windows\铃声。 外壳:漫游平铺图像-%LocalAppData%\Microsoft\Windows\RoamedTileImages。 Shell:漫游磁贴-%AppData%\Microsoft\Windows\RoamingTiles。 Shell:SavedGames-%UserProfile%\Saved Games。 Shell:截图-%UserProfile%\Pictures\Screenshot。 外壳程序:搜索-%UserProfile%\Searches。 外壳:搜索历史文件夹-%LocalAppData%\Microsoft\Windows\ConnectedSearch\History。 shell:SearchHomeFolder-Search-ms: Shell:SearchTemplatesFolder-%LocalAppData%\MICR

这就对了。当然,一旦你找到了这些文件夹,你就可以很容易地给它们加书签,这样以后你就可以更快地找到它们。但是,如果您是键盘爱好者,可能值得将其中的一些内容添加到您的曲目中。

相关文章