Richard Korts
asked on
Search for specific text in Win 10 files
How can I search for specific text in all files in windows 10?
They have made it so obtuse that I can even figure out how to search for a file name.
They have made it so obtuse that I can even figure out how to search for a file name.
You just use the search box in the top right of any File Explorer window.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Open up Powershell ISE and use this script to find the text recursively within subdirectories faster:
Get-ChildItem -Path "C:\LOCATION\*.txt" -Recurse | ForEach-Object {
$FileItem = $_
Select-String -Path $FileItem.FullName -Pattern 'insert text to search here' |
Select-Object -Property `
@{Name='DirectoryName'; Expression={$FileItem.DirectoryName}},
@{Name='Name'; Expression={$FileItem.Name}},
LineNumber,
Line
}
Thanks Richard and I trust all is well now in terms of search.