Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

3 Answers 3

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
1  
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 at 15:48

I found the answer here: http://technet.microsoft.com/en-us/library/ff404224.aspx

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

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.