Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

The Windows FIND and FINDSTR commands are ok for searching within certain types of files for matching string values, but neither of these works against newer MS-Office formats like DOCX, XLSX, or PPTX. Is there another way to search within these files from a command line? This would be on Windows Vista and Windows 7 computers only.

share|improve this question

I found the answer here:

share|improve this answer
Please put the actual answer in your answer rather than just linking to an external article. – Ryan Oct 7 '14 at 15:48
?The reference has nothing to do with the command-line ... – kreemoweet Oct 7 '14 at 17:15

Under Windows 7, you can add new file types to the index (Control Panel -> Indexing Options -> Advanced Options -> File Types). Don't forget to rebuild your index.

Some users also reported that they reinstalled MS Office 2007 and rebuild their index and after that content search of MS Office file types was OK.

share|improve this answer

if you convert .doc to .txt, .xls to .csv you'll be able to issue those commands against them

the reason those files don't work with the commands is that their content is encrypted, and i don't think console commands and screen can process non-plaintext type of files, yet you may still try to search in documents for the binaries (winword.exe, excel.exe, powerpnt.exe) and their command-line use with the switches of those applications but the display format (ie presentation, output) for retriving found values in the files on consoles (cmd.exe, powershell.exe) remains unimaginable for me

share|improve this answer
The content of a .docx is not encrypted. The docx is a container (like a zip file) that contains multiple files. That's why you can't search them, not because it's encrypted. If you change the .docx to .zip, you can actually open the archive and view the contents in Windows Explorer. – Ryan Oct 7 '14 at 15:48

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .