当您在Windows 文件资源管理器(Windows File Explorer)中打开一个文件夹时,您希望看到完整的内容——所有文件、所有子文件夹。然而,这不一定是真的。如果您正在查看的文件夹包含隐藏文件或文件夹,Windows不会显示它们,除非您在文件资源管理器中启用了隐藏文件视图(enabled hidden file view in File Explorer)。
如果您想知道如何在Windows 10上查找隐藏文件夹以及其中包含的任何隐藏文件,则需要使用我们在下面列出的一些方法。这包括使用文件资源管理器(File Explorer)和Windows PowerShell中的秘密搜索工具来定位它们,以及使用第三方替代品,如FreeCommander。
如何使用文件资源管理器在 Windows 10 上查找隐藏文件和文件夹(How to Find Find Hidden Files and Folders on Windows 10 Using File Explorer)
如果您要寻找丢失的文件或文件夹,最好的方法是使用文件资源管理器(File Explorer)的搜索工具。使用高级搜索参数,您可以使用打开的(Using)文件资源管理器(File Explorer)窗口查找已被视图隐藏(自动或手动)的任何文件夹或文件。
- 为此,请使用任务栏(如果文件资源管理器(File Explorer)图标已固定)或通过“开始(Start)”菜单打开一个新的文件资源管理器窗口。(File Explorer)您也可以右键单击“开始(Start)”菜单并选择“文件资源管理器(File Explorer)”以打开一个新窗口。
- 在新的文件资源管理器(File Explorer )窗口中,打开您要搜索的文件夹(或驱动器)。使用右上角的搜索栏,输入attributes:H并选择回车键(enter key)开始搜索。这将搜索该文件夹中在“属性(Properties)”菜单中应用了隐藏文件属性的所有文件和文件夹。
- 如果要进一步自定义搜索,可以将文件或文件夹名称(或部分名称)添加到搜索中。为此,请在搜索栏中的attributes:H参数之前或之后键入文件或文件夹名称(例如(attributes:H)file attributes:H)。如果要搜索部分匹配,可以使用通配符(例如fil* attributes:H)来执行此操作。
- 找到文件或文件夹后,您可以通过右键单击文件或文件夹并从弹出菜单中选择打开文件位置,将其追溯到其保存位置。(Open file location)
使用 Windows Powershell 搜索隐藏文件和文件夹(Searching for Hidden Files and Folders Using Windows Powershell)
虽然上面的文件资源管理器方法提供了在(File Explorer)Windows 10上查找隐藏文件和文件夹的最简单方法,但它不一定是最快的。如果您想在您的 PC 中快速搜索您遗漏的任何文件,一个不错的选择是使用Windows PowerShell来执行此操作。
您也可以使用较新的 Windows 终端(newer Windows Terminal),但PowerShell仍然是(PowerShell)Windows 10用户的默认选项。以下命令是特定于PowerShell的,不适用于较旧的Command Line。
首先,通过右键单击开始(Start)菜单并选择Windows PowerShell (Admin )打开一个新的PowerShell窗口。(PowerShell)
在新的PowerShell窗口中,移动到要搜索的文件夹或驱动器。例如,键入cd C:\会将您移动到主系统驱动器上的根(第一个)文件夹,从而允许您搜索整个驱动器。
键入cd C:\Program Files意味着您执行的搜索将仅适用于Program Files文件夹中包含的任何文件和子文件夹。移动文件夹后,键入ls -Force以查看其中包含的文件和文件夹列表(包括任何隐藏的文件或文件夹)。
进入文件夹开始搜索后,在PowerShell窗口中键入以下命令并按Enter 键(Enter key)运行它:Get-ChildItem -Filter *.* -Recurse -Force -ErrorAction SilentlyContinue | where { $_.Attributes -match “Hidden”}。
这将搜索当前文件夹位置中的所有隐藏文件和子文件夹,并在PowerShell窗口中列出它们。
如果您希望列出一个文件夹目录来开始搜索,请在Get-ChildItem之后将(Get-ChildItem)-Path location添加到您的命令中,并将location替换为合适的文件路径。
例如,Get-ChildItem -Path C:\Folder -Filter *.* -Recurse -Force -ErrorAction SilentlyContinue | where { $_.Attributes -match “Hidden”} 将搜索C:\Folder 目录中的所有隐藏文件和子文件夹。如果文件路径包含空格或其他特殊字符,您需要将它们包含在引号内(例如,Get-ChildItem -Path “C:\New Folder” 等)。
如果PowerShell定位到大量隐藏的文件和文件夹,PowerShell终端输出将快速滚动条目,使其难以分析。为了使这更容易,您可以将Get-ChildItem命令的输出保存到文本文件中,以便您在闲暇时搜索和查看。
为此,请将> log.txt 添加到命令末尾(例如Get-ChildItem -Path “C:\New Folder” -Filter *.* -Recurse -Force -ErrorAction SilentlyContinue | where { $_.Attributes -match “Hidden”} > log.txt)。这将在您当前活动的文件夹中创建一个名为log.txt的文件,其中包含(log.txt)Get-ChildItem命令的终端输出。
您可以根据需要设置替代文件路径(例如> C:\Folder\log.txt)或文件名(例如hiddenlog.txt)。
如果您已创建日志文件,则可以通过键入cat log.txt(将log.txt替换为正确的文件路径和文件名)直接在PowerShell窗口中查看内容。(PowerShell)您也可以使用文件资源管理器(File Explorer)和记事本(Notepad)正常打开文件。
使用第三方应用程序查找隐藏文件和文件夹(Locating Hidden Files and Folders Using Third-Party Apps)
在 Windows 上查找隐藏文件和文件夹的最佳方法是使用文件资源管理器(File Explorer)或Windows PowerShell,如上所述。如果这些方法太慢或不提供您需要的复杂搜索条件,您可以使用第三方应用程序在您的 PC 中搜索隐藏文件作为替代方法。
虽然存在各种支持此功能的工具,但一个不错的选择是使用免费软件FreeCommander工具。此文件资源管理器(File Explorer)替代品包括一个强大的搜索工具,可让您在 PC 上找到隐藏的文件和文件夹。
首先,在您的 PC 上下载并安装 FreeCommander ,并在安装完成后启动它。(download and install FreeCommander)要在FreeCommander窗口中开始搜索,请在键盘上选择Ctrl + F或选择文件(File )>搜索(Search)以打开新的搜索窗口。
在“Search files/folders”窗口中,在“位置(Location)”选项卡的“文件名( File name)”框中输入文件或文件夹名称的搜索条件。您可以使用完整文件名或使用通配符(例如file或fil*)查找部分匹配项。
在其下方的“搜索范围”(Search In)框中,选择要开始搜索的文件夹。您可以手动键入(例如C:\搜索整个系统驱动器)或选择添加按钮(add button )>浏览(Browse)以单独识别它们。
接下来选择Timestamp/Size/Attr 选项卡,并确保选中Hidden attribute 复选框,以便显示一个勾号。将所有其他复选框保留为纯黑色复选(确保包含它们)或选择它们两次以取消选中它们并从搜索中删除包含这些属性的任何文件。
在所有可用的搜索选项卡中选择(Select)您需要的任何其他搜索条件。当您准备好开始搜索时,选择查找(Find)开始。
搜索结果将显示在搜索窗口底部的搜索结果选项卡中。(Search result )要打开FreeCommander找到的任何隐藏文件或文件夹,请右键单击条目并选择打开(Open)。
在 Windows 10 上管理文件(Managing Your Files on Windows 10)
知道如何在Windows 10上查找隐藏文件很容易 — 只要您知道在哪里查找。无论(Whether)您使用文件资源管理器(Explorer)、Windows PowerShell还是(Windows PowerShell)FileCommander等第三方应用程序来完成工作,上述步骤都可以帮助您找到以前隐藏的文件和文件夹。
下一步是正确管理您的文件。有很多高级搜索提示(advanced search tips)可以定位丢失的文件,但您可能还需要考虑备份重要文件(backing up your important files),以便从长远来看更容易访问它们。您还可以在 Windows 上查找大文件,(look for large files on Windows)以帮助为其他文件和应用程序释放磁盘空间。
How to Find Hidden Files and Folders on Windows
When you open a folder in Windowѕ File Explorer, you expect to sеe the full contentѕ — all the files, all the sub-folders. That isn’t necessarily true, however. If the folder you’re looking in contains hidden filеs or folders, Windows won’t show them unless you’ve enabled hidden file view in File Explorer.
If you want to know how to find hidden folders on Windows 10 and any hidden files contained within, you’ll need to use some of the methods we’ve listed below. This includes using secret search tools in File Explorer and Windows PowerShell to locate them, as well as using third-party alternatives like FreeCommander.
How to Find Find Hidden Files and Folders on Windows 10 Using File Explorer
If you’re trying to hunt down a missing file or folder, the best way to do it is to use File Explorer’s search tool. Using advanced search parameters, you can locate any folders or files that have been hidden by view (either automatically or manually) using an open File Explorer window.
- To do this, open a new File Explorer window using your taskbar (if the File Explorer icon is pinned) or via the Start menu. You can also right-click the Start menu and select File Explorer to open a new window instead.
- In the new File Explorer window, open the folder (or drive) that you’re looking to search. Using the search bar in the top right, type attributes:H and select the enter key to begin the search. This searches for all files and folders within that folder that have the hidden file attribute applied to them in the Properties menu.
- If you want to customize the search further, you can add a file or folder name (or partial name) to the search. To do this, type the file or folder name before or after the attributes:H parameter in the search bar (eg. file attributes:H). If you want to search for partial match, you can use a wildcard (eg. fil* attributes:H) to do so.
- Once you’ve located a file or folder, you can trace it back to its saved location by right-clicking the file or folder and selecting Open file location from the pop-up menu.
Searching for Hidden Files and Folders Using Windows Powershell
While the File Explorer method above offers the easiest way to find hidden files and folders on Windows 10, it isn’t necessarily the quickest. If you want to quickly search through your PC for any files you’ve missed, a good alternative is to use the Windows PowerShell to do so.
You can also use the newer Windows Terminal, but PowerShell remains the default option for Windows 10 users. The commands below are PowerShell specific and won’t work with the older Command Line.
To start, open a new PowerShell window by right-clicking the Start menu and selecting Windows PowerShell (Admin).
In the new PowerShell window, move to the folder or drive you wish to search. For instance, typing cd C:\ will move you to the root (first) folder on the main system drive, allowing you to search the entire drive.
Typing cd C:\Program Files means that the search you perform will only work through any files and sub-folders contained in the Program Files folder. Once you’ve moved folders, type ls -Force to view a list of files and folders contained within (including any hidden files or folders).
Once you’ve moved into the folder to begin your search, type the following command into the PowerShell window and press the Enter key to run it: Get-ChildItem -Filter *.* -Recurse -Force -ErrorAction SilentlyContinue | where { $_.Attributes -match “Hidden”}.
This will search for all hidden files and sub-folders in your current folder position and list them in the PowerShell window.
If you’d prefer to list a folder directory to begin the search, add -Path location to your command after Get-ChildItem, replacing location with a suitable file path.
For instance, Get-ChildItem -Path C:\Folder -Filter *.* -Recurse -Force -ErrorAction SilentlyContinue | where { $_.Attributes -match “Hidden”} will search for all hidden files and subfolders in the C:\Folder directory. If the file path contains spaces or other special characters, you’ll need to contain them within quotation marks (eg. Get-ChildItem -Path “C:\New Folder” etc).
If PowerShell locates a large number of hidden files and folders, the PowerShell terminal output will scroll through the entries rapidly, making it difficult to analyze. To make this easier, you can save the output of the Get-ChildItem command to a text file, allowing you to search through and review at your leisure.
To do this, add > log.txt to the end of your command (eg. Get-ChildItem -Path “C:\New Folder” -Filter *.* -Recurse -Force -ErrorAction SilentlyContinue | where { $_.Attributes -match “Hidden”} > log.txt). This will create a file named log.txt in your currently active folder containing the terminal output of the Get-ChildItem command.
You can set an alternative filepath (eg > C:\Folder\log.txt) or filename (eg hiddenlog.txt) as required.
If you’ve created a log file, you can view the contents in the PowerShell window directly by typing cat log.txt (replacing log.txt with the correct file path and file name). You can also open the file as normal using File Explorer and Notepad.
Locating Hidden Files and Folders Using Third-Party Apps
The best methods for finding hidden files and folders on Windows are to use File Explorer or Windows PowerShell as explained above. If these methods are too slow or don’t offer the complex search criteria that you need, you can use third-party apps to search your PC for hidden files as an alternative.
While various tools exist that support this, one good option is to use the freeware FreeCommander tool. This File Explorer replacement includes a powerful search tool that allows you to locate hidden files and folders on your PC.
To start, download and install FreeCommander on your PC and launch it once the installation is complete. To begin a search in the FreeCommander window, select Ctrl + F on your keyboard or select File > Search to open a new search window.
In the Search files/folders window, enter the search criteria for file or folder names in the File name box, located in the Location tab. You can use full file names or find partial matches using a wildcard (eg. file or fil*).
In the Search In box below it, select the folder to begin the search. You can type this manually (eg. C:\ to search the entire system drive) or select the add button > Browse to identify them individually.
Select the Timestamp/Size/Attr tab next and make sure to select the Hidden attribute checkbox so that a tick is visible. Leave all other checkboxes with a solid black check (ensuring that they’re included) or select them twice to uncheck them and remove any files containing those attributes from your search.
Select any other search criteria that you require in all the available search tabs. When you’re ready to begin your search, select Find to begin.
Search results will appear in the Search result tab at the bottom of the search window. To open any of the hidden files or folders that FreeCommander locates, right-click the entries and select Open.
Managing Your Files on Windows 10
Knowing how to find hidden files on Windows 10 is easy — once you know where to look. Whether you use File Explorer, Windows PowerShell, or third-party apps like FileCommander to get the job done, the steps above should help you locate your previously hidden files and folders.
The next step is to manage your files properly. There are plenty of advanced search tips to locate missing files, but you may also need to consider backing up your important files to make them easier to access in the long run. You can also look for large files on Windows to help free up disk space for other files and applications.