Làm thế nào để mở các thư mục ẩn trên hệ thống bằng lệnh Shell trên Windows?

  1. Tác giả: LTTK CTV26
    Đánh giá: ✪ ✪ ✪ ✪ ✪

    Trên hệ điều hành có rất nhiều thư mục hệ thống ẩn có thể "nhận dạng" được trên Windows Registry bằng key CLSID, tên thư mục cụ thể và vị trí thư mục trên máy tính của bạn.
    Ngoài ra khi sử dụng kết hợp tên các thư mục cụ thể cùng lệnh Shell đồng nghĩa với việc các thư mục ẩn dù có bị "chôn sâu" trên hệ thống thì cũng sẽ bị “đào” lên.

    [​IMG]

    1. Key CLSID là gì?

    Vị trí các thư mục cụ thể (và một số phần mềm khác) được cung cấp một CLSID cho phép Windows và các chương trình khác có thể dễ dàng “nhận diện” các thư mục mà không cần phải biết chính xác tên thư mục đó.
    Key CLSID, tên gọi chung và đường dẫn đầy đủ được sử dụng để lưu trữ các thư mục này giống như các thư mục trên Windows Registry.
    Bản chất của nó tương tự như cách mà mỗi máy tính trên hệ thống mạng của bạn đều có một tên cụ thể để bạn có thể dễ dàng nhớ được – khi bạn sử dụng tên máy tính (computer name), Windows sẽ tra địa chỉ IP của máy tính cho bạn.
    Trong cùng một cách, các chương trình có thể sử dụng một tên chung (command name) cho một thư mục trên cấu trúc của Windows và dựa vào vị trí hiện tại của thư mục được lưu trữ để tạo một key CLSID trên Registry.
    Shell sẽ làm việc cùng các thư mục được liệt kê trong Regitry tại vị trí:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\FolderDescriptions​

    [​IMG]

    Mỗi một subkey trong danh sách key FolderDescriptions đại diện cho một thư mục cụ thể. Tên của mỗi key là CLSID của thư mục đó. Khi bạn click vào bất kỳ một subkey nào tại đó, bạn sẽ nhìn thấy một số value quan trọng đính kèm với key đó, chẳng hạn như Name (tên chung của thư mục) và RelativePath (đường dẫn hiện tại nơi thư mục được lưu trữ).
    2. Sử dụng lệnh Shell như thế nào?

    Để mở một thư mục, bạn có thể sử dụng một lệnh Shell cụ thể cùng tên một thư mục đó.
    Bạn có thể sử dụng lệnh Shell từ hộp thoại Run (nhấn tổ hợp phím Windows + R), trên thanh địa chỉ Windows File Explorer và thậm chí là trên cả thanh địa chỉ Internet Explorer. Chỉ cần nhập lệnh theo cú pháp lệnh dưới đây:
    Mã (Text):
    1. shell:<name>
    Ví dụ nếu bạn muốn mở thư mục có chứa hình ảnh được sử dụng để tạo tài khoản Windows của bạn, thay vì duyệt tìm trong thư mục AppData trên tài khoản của bạn, bạn chỉ cần mở cửa sổ lệnh Run, nhập câu lệnh dưới đây vào rồi nhấn Enter là xong:
    Mã (Text):
    1. shell:AccountPictures
    [​IMG]

    3. Tên các thư mục có sẵn

    Dưới đây là danh sách tên các thư mục bạn có thể sử dụng sau lệnh Shell và vị trí tương đối của các thư mục:
    Mã (Text):
    1. shell:AccountPictures – %AppData%\Microsoft\Windows\AccountPictures
    2. shell:AddNewProgramsFolder – Control Panel\All Control Panel Items\Get Programs
    3. shell:Administrative Tools – %AppData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
    4. shell:AppData – %AppData%
    5. shell:Application Shortcuts – %LocalAppData%\Microsoft\Windows\Application Shortcuts
    6. shell:AppsFolder – Applications
    7. shell:AppUpdatesFolder – Installed Updates
    8. shell:Cache – %LocalAppData%\Microsoft\Windows\INetCache
    9. shell:Camera Roll – %UserProfile%\Pictures\Camera Roll
    10. shell:CD Burning – %LocalAppData%\Microsoft\Windows\Burn\Burn
    11. shell:ChangeRemoveProgramsFolder – Control Panel\All Control Panel Items\Programs and Features
    12. shell:Common Administrative Tools – %ProgramData%\Microsoft\Windows\Start Menu\Programs\Administrative Tools
    13. shell:Common AppData – %ProgramData%
    14. shell:Common Desktop – %Public%\Desktop
    15. shell:Common Documents – %Public%\Documents
    16. shell:CommonDownloads – %Public%\Downloads
    17. shell:CommonMusic – %Public%\Music
    18. shell:CommonPictures – %Public%\Pictures
    19. shell:Common Programs – %ProgramData%\Microsoft\Windows\Start Menu\Programs
    20. shell:CommonRingtones – %ProgramData%\Microsoft\Windows\Ringtones
    21. shell:Common Start Menu – %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup
    22. shell:Common Startup – %ProgramData%\Microsoft\Windows\Start Menu\Programs\Startup
    23. shell:Common Templates – %ProgramData%\Microsoft\Windows\Templates
    24. shell:CommonVideo – %Public%\Videos
    25. shell:ConflictFolder – Control Panel\All Control Panel Items\Sync Center\Conflicts
    26. shell:ConnectionsFolder – Control Panel\All Control Panel Items\Network Connections
    27. shell:Contacts – %UserProfile%\Contacts
    28. shell:ControlPanelFolder – Control Panel\All Control Panel Items
    29. shell:Cookies – %LocalAppData%\Microsoft\Windows\INetCookies
    30. shell:Cookies\Low – %LocalAppData%\Microsoft\Windows\INetCookies\Low
    31. shell:CredentialManager – %AppData%\Microsoft\Credentials
    32. shell:CryptoKeys – %AppData%\Microsoft\Crypto
    33. shell:desktop – Desktop
    34. shell:device Metadata Store – %ProgramData%\Microsoft\Windows\DeviceMetadataStore
    35. shell:documentsLibrary – Libraries\Documents
    36. shell:downloads – %UserProfile%\Downloads
    37. shell:dpapiKeys – %AppData%\Microsoft\Protect
    38. shell:Favorites – %UserProfile%\Favorites
    39. shell:Fonts – %WinDir%\Fonts
    40. shell:Games – Games
    41. shell:GameTasks – %LocalAppData%\Microsoft\Windows\GameExplorer
    42. shell:History – %LocalAppData%\Microsoft\Windows\History
    43. shell:HomeGroupCurrentUserFolder – Homegroup\(user-name)
    44. shell:HomeGroupFolder – Homegroup
    45. shell:ImplicitAppShortcuts – %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned\ImplicitAppShortcuts
    46. shell:InternetFolder – Internet Explorer
    47. shell:Libraries – Libraries
    48. shell:Links – %UserProfile%\Links
    49. shell:Local AppData – %LocalAppData%
    50. shell:LocalAppDataLow – %UserProfile%\AppData\LocalLow
    51. shell:MusicLibrary – Libraries\Music
    52. shell:MyComputerFolder – This PC
    53. shell:My Music – %UserProfile%\Music
    54. shell:My Pictures – %UserProfile%\Pictures
    55. shell:My Video – %UserProfile%\Videos
    56. shell:NetHood – %AppData%\Microsoft\Windows\Network Shortcuts
    57. shell:NetworkPlacesFolder – Network
    58. shell:OneDrive – OneDrive
    59. shell:OneDriveCameraRoll – %UserProfile%\OneDrive\Pictures\Camera Roll
    60. shell:OneDriveDocuments – %UserProfile%\OneDrive\Documents
    61. shell:OneDriveMusic – %UserProfile%\OneDrive\Music
    62. shell:OneDrivePictures – %UserProfile%\OneDrive\Pictures
    63. shell:Personal – %UserProfile%\Documents
    64. shell:PicturesLibrary – Libraries\Pictures
    65. shell:PrintersFolder – All Control Panel Items\Printers
    66. shell:PrintHood – %AppData%\Microsoft\Windows\Printer Shortcuts
    67. shell:Profile – %UserProfile%
    68. shell:ProgramFiles – %ProgramFiles%
    69. shell:ProgramFilesCommon – %ProgramFiles%\Common Files
    70. shell:ProgramFilesCommonX64 – %ProgramFiles%\Common Files (64-bit Windows only)
    71. shell:ProgramFilesCommonX86 – %ProgramFiles(x86)%\Common Files (64-bit Windows only)
    72. shell:ProgramFilesX64 – %ProgramFiles% (64-bit Windows only)
    73. shell:ProgramFilesX86 – %ProgramFiles(x86)% (64-bit Windows only)
    74. shell:Programs – %AppData%\Microsoft\Windows\Start Menu\Programs
    75. shell:Public – %Public%
    76. shell:PublicAccountPictures – %Public%\AccountPictures
    77. shell:PublicGameTasks – %ProgramData%\Microsoft\Windows\GameExplorer
    78. shell:PublicLibraries – %Public%\Libraries
    79. shell:Quick Launch – %AppData%\Microsoft\Internet Explorer\Quick Launch
    80. shell:Recent – %AppData%\Microsoft\Windows\Recent
    81. shell:RecordedTVLibrary – Libraries\Recorded TV
    82. shell:RecycleBinFolder – Recycle Bin
    83. shell:ResourceDir – %WinDir%\Resources
    84. shell:Ringtones – %ProgramData%\Microsoft\Windows\Ringtones
    85. shell:Roamed Tile Images – %LocalAppData%\Microsoft\Windows\RoamedTileImages
    86. shell:Roaming Tiles – %AppData%\Microsoft\Windows\RoamingTiles
    87. shell:SavedGames – %UserProfile%\Saved Games
    88. shell:Screenshots – %UserProfile%\Pictures\Screenshots
    89. shell:Searches – %UserProfile%\Searches
    90. shell:SearchHistoryFolder – %LocalAppData%\Microsoft\Windows\ConnectedSearch\History
    91. shell:SearchHomeFolder – search-ms:
    92. shell:SearchTemplatesFolder – %LocalAppData%\Microsoft\Windows\ConnectedSearch\Templates
    93. shell:SendTo – %AppData%\Microsoft\Windows\SendTo
    94. shell:Start Menu – %AppData%\Microsoft\Windows\Start Menu
    95. shell:StartMenuAllPrograms – StartMenuAllPrograms
    96. shell:Startup – %AppData%\Microsoft\Windows\Start Menu\Programs\Startup
    97. shell:SyncCenterFolder – Control Panel\All Control Panel Items\Sync Center
    98. shell:SyncResultsFolder – Control Panel\All Control Panel Items\Sync Center\Sync Results
    99. shell:SyncSetupFolder – Control Panel\All Control Panel Items\Sync Center\Sync Setup
    100. shell:System – %WinDir%\System32
    101. shell:SystemCertificates – %AppData%\Microsoft\SystemCertificates
    102. shell:SystemX86 – %WinDir%\SysWOW64
    103. shell:Templates – %AppData%\Microsoft\Windows\Templates
    104. shell:ThisPCDesktopFolder – Desktop
    105. shell:UsersFilesFolder – %UserProfile%
    106. shell:User Pinned – %AppData%\Microsoft\Internet Explorer\Quick Launch\User Pinned
    107. shell:UserProfiles – %HomeDrive%\Users
    108. shell:UserProgramFiles – %LocalAppData%\Programs
    109. shell:UserProgramFilesCommon – %LocalAppData%\Programs\Common
    110. shell:UsersLibrariesFolder – Libraries
    111. shell:VideosLibrary – Libraries\Videos
    112. shell:Windows – %WinDir%