If you want to include other documents files like PDF, you can type: kind:document command. Search for keywords in multiple Word documents from command line. If you are familiar with command prompt, you can also use findstr commands to search multiple documents. This tool allows you to search for strings in files using regular expressions or , The following code uses the FileSystemObject to search the subfolders recursively. And, it uses late-binding, so there's no need to reference the Microsoft Scripting Runtime library. And, of course, make any changes that you desire., Starting July 2, you will no longer be able to create new questions here in the Microsoft Support Community. However, you can continue to participate in ongoing discussions and create new questions on Microsoft Q&A. Thank you for your understanding and cooperation., If I fill in the search field on the right top corner of Windows Explorer a term, and press ENTER, Windows shows me a list of docx files where that term appears. If I switch on the preview pane I can also see the content of the specific file without opening it, but there is no way to search the term inside the preview pane., > Click "View" at the top of the window > Click on the "Options" icon, (it will be the last option on the bar that appears when you click "View") > In the "Folder Options" window that opens, click on the "Search" tab > In the "When searching for non-indexed locations" section, enable the "Always search for file names and content" option Let me , 4. Type in the keyword that you want to search for and press enter. 5. OneDrive will display all the files that contain the keyword in their names or contents. 6. To filter the search results, you can click on the "Filter" button located on the right side of the page and choose to search only for specific file types or dates. 7..