

$objWord = New-Object -ComObject word.application
#SEARCHING WTHING WORD FILES WINDOWS 10 HOW TO#
There are samples around the web on how to do this for different file types. It requires knowledge of each step intimately, and calling into the parent app to show it. Your code must find the file, keyword, open the file using the file app engine, then you have to navigate via that file object model to use the keyword to search it once opened and land on the keyword location.

However, that is what consultants are for. Well, sometimes it happens, if someone is feeling really generous. We'll help with code you've written, but not write it from scratch for you. Again, not something out of the box on Window in any way. A fresh install of Windows 10 (about 120,000 files) will take about 1 second to index. You are asking to do a search, and land on that spot in a file based on a keyword. How do I search for files and folders in a specific location. Windows explorer can search virtually any file content, as long as you set it to, but it will not show you a preview without preview mode, and preview is just a tool to open the file, using the files default app. You have to write this yourself as I stated earlier. Click a file name and it will show you the entire file contents, depending on how the file formatted.Īlight, but what you are asking about is not something out of the box.

This will give you a resizable split pane to the right of your file explorer list. Or, just use windows explorer, after setting advanced preference to search file content, then do a search and leverage preview mode, using the view menu, or pin that item to the explorer quick launch bar for easy access. If you are saying you are doing this in PS, then you have to write that yourself. So, you posted this on a PowerShell script assistant forum and this does not appear to be a PS question / issue but a general Windows Explorer use case question.
