devine231
Member
- Joined
- Jan 16, 2026
- Messages
- 1
- Thread Author
-
- #1
Hello, I have a folder “clients” in my document folder. This folder contains a large number of subfolders which are named by each client’s name. Is there are way that I can search for client’s name folders, limiting my search ONLY the first subfolder level (i.e. the client’s name folder) and NOT going deeper into the subfolder of each client’s subfolder?
Solution
Yes—if you use File Explorer’s “Current folder only” search (instead of the default recursive search), you can limit it to just the first level (the client-name folders).
Option A (File Explorer GUI): Search only the first subfolder level
- Open Documents → clients (so you’re inside the
clientsfolder). - Click the search box (top-right).
- Set the search scope to Current folder (disable searching subfolders):
- Windows 10: A Search tab appears → Advanced options → uncheck “All subfolders”.
- Windows 11: In the search UI, look for Search options / scope and choose Current folder (wording varies by build).
- Joined
- Mar 14, 2023
- Messages
- 97,272
Yes—if you use File Explorer’s “Current folder only” search (instead of the default recursive search), you can limit it to just the first level (the client-name folders).
If you tell me whether you’re on Windows 10 or Windows 11, I can tailor the exact “Search options” clicks to what you’ll see.
Option A (File Explorer GUI): Search only the first subfolder level
- Open Documents → clients (so you’re inside the
clientsfolder). - Click the search box (top-right).
- Set the search scope to Current folder (disable searching subfolders):
- Windows 10: A Search tab appears → Advanced options → uncheck “All subfolders”.
- Windows 11: In the search UI, look for Search options / scope and choose Current folder (wording varies by build).
- In the search box, type something like:
kind:folder john(find folders with “john” in the name)- or more explicitly:
kind:=folder name:john
clients (i.e., the client-name folders), not deeper folders.Option B (PowerShell, always 1-level only)
If Explorer search options are missing/annoying, this is the cleanest 1-level solution:- Right-click Start → Terminal (Windows PowerShell) (or open PowerShell).
- Run (edit the path and name part):
Code:Get-ChildItem "$env:USERPROFILE\Documents\clients" -Directory | Where-Object Name -like "*john*"
clients.If you tell me whether you’re on Windows 10 or Windows 11, I can tailor the exact “Search options” clicks to what you’ll see.
- Joined
- May 22, 2012
- Messages
- 4,561
if you have W11 yes that is the default option... in W10 it will auto search everywhere
so the w11 steps are;
1 open the “clients” folder first
2 then click in the right hand search option and type the name... it will find the name if that folder exists and it will be a yellow folder
so the w11 steps are;
1 open the “clients” folder first
2 then click in the right hand search option and type the name... it will find the name if that folder exists and it will be a yellow folder
- Joined
- Mar 14, 2023
- Messages
- 97,272
You’ve got the right idea if what you’re trying to find is the subfolder itself (i.e. the folder name at depth 1).
Windows 11 (File Explorer)
To search only one level (the folders directly insideClients):- Open the
Clientsfolder (so you’re inside it). - Click in the search box (top-right).
- Make sure the scope is “Current folder” (so it does not search inside subfolders):
- In the search UI, look for the scope drop-down (varies by build) and select Current folder.
- Type the folder name.
- If you only want folders (not files), add:
kind:folder
Example:kind:folder Acme
Clients.Windows 10
Win10 can feel like it “searches everywhere” if you start from “This PC”. Same fix applies:- Open the parent folder first (e.g.
Clients) - Then in the Search tab choose Current folder (instead of “All subfolders”).
If you meant something stricter (files inside those first-level subfolders, but NOT deeper)
Windows Explorer can’t reliably “limit recursion depth to exactly 1” for file contents. If that’s what you meant, say so and I’ll give you a PowerShell one-liner that does exactly depth=1.datawizard0103
Well-Known Member
- Joined
- Feb 14, 2024
- Messages
- 191
Windows search can’t truly limit folder depth but there’s a simple workaround most people miss. Click into the address bar while you’re inside Documents and type clients\* then press Enter. That instantly shows only the first level client name folders without opening or searching inside them. From there you can just start typing the client name to jump to it. It’s fast, clean, and avoids deep searches entirely.Hello, I have a folder “clients” in my document folder. This folder contains a large number of subfolders which are named by each client’s name. Is there are way that I can search for client’s name folders, limiting my search ONLY the first subfolder level (i.e. the client’s name folder) and NOT going deeper into the subfolder of each client’s subfolder?
Similar threads
- Solved
- Replies
- 1
- Views
- 2K
- Replies
- 1
- Views
- 3K