I'm not sure you can do it, actually. I was just offering, off the top of my head, a way to quickly search kajillions of files for a particular text string using a Windows OS. I'm really sorry if I led you astray.
I have never used WinGrep, but the website says that "results can be saved to disk in plain text or HTML format." If that's true, perhaps you can use the output to craft a script or batch file to accomplish your goals. http://www.wingrep.com/ Good luck in any case, RS From: Glen Johnson [mailto:[email protected]] Sent: Friday, July 10, 2009 11:37 PM To: NT System Admin Issues Subject: RE: Find text in files Thanks for the quick reply, late on a Friday night. Ok, I installed it, and see how to search for text in multiple files. How do I export that list of files so I can use it in a batch file or run a command on those found files? It isn't obvious to me. Glen From: Richard Stovall [mailto:[email protected]] Sent: Friday, July 10, 2009 11:11 PM To: NT System Admin Issues Subject: RE: Find text in files Programmer's Notepad will search for text strings in multiple text files. Use the "Find in files" feature. It's a button on the toolbar that looks like binoculars on top of a manila folder. http://www.pnotepad.org/ From: Glen Johnson [mailto:[email protected]] Sent: Friday, July 10, 2009 10:35 PM To: NT System Admin Issues Subject: Find text in files I desperately need a pointer to get me going on this. We have a machine somewhere that has been sending tons of spam through our exchange server. I stopped the smtp relay server before all of them got sent but now have a problem. The outgoing queue has 4000 plus files that I need to either delete or move to a different folder based on the text in each file. I tried using the dos find command but its output lists every file even if it doesn't include the text. So here is what I need. Something that will search a file for a string, if the string is found, output the name of the file to a text file. Then I can use the for command to move the file to a junk folder. Run this a couple of times to get rid of the spam and what I have left are the legit emails that need to be processed. Any help/suggestions/pointers appreciated. Glen. ~ Finally, powerful endpoint security that ISN'T a resource hog! ~ ~ <http://www.sunbeltsoftware.com/Business/VIPRE-Enterprise/> ~
