Search word docs for string, if string found, copy file

January 8, 2012 at 06:42:16
Specs: Windows XP, sp 3, Intel Core/ 3.48Gb
I produce a file containing the names of a set of files (up to 56,000, and growing), and want to search each file for a string or set of words (a dictionary). If the strings match, I would like to copy the file to another location and have the file retain the ability to be opened by MS Word.

I can get the list of file names and use FINDSTR to find a string. I have yet to test this with mutiple strings, phrases, or a small dictionary (say 10 words).

I'd like to do all this in DOS.


See More: Search word docs for string, if string found, copy file

Report •


#1
January 8, 2012 at 15:09:24
What format is the file in exactly?

1/3 of highway deaths are caused by drunks. The rest are by people who can't drive any better than a drunk.


Report •

#2
January 9, 2012 at 23:36:35
Microsoft Word document, either .doc or .docx formats from MS Word 97-2003 or later.

Report •
Related Solutions


Ask Question