Link to home
Start Free TrialLog in
Avatar of Richard Korts
Richard KortsFlag for United States of America

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.
Avatar of Skyler Kincaid
Skyler Kincaid
Flag of United States of America image

You just use the search box in the top right of any File Explorer window.


User generated image
ASKER CERTIFIED SOLUTION
Avatar of John
John
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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
}

Open in new window

Thanks Richard and I trust all is well now in terms of search.