I forgot about that, I am so used to using Unxtools, good reco :)

From: Joe Tinney [mailto:[email protected]]
Sent: Friday, July 10, 2009 10:24 PM
To: NT System Admin Issues
Subject: RE: Find text in files

Have you tried findstr.exe? I've not used it much but I know that what you are 
asking for is exactly what it does. Looks like the /m switch will output just 
file names that have the string and if you output that to a file it should get 
you what you need.

http://technet.microsoft.com/en-us/library/bb490907.aspx

HTH

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/>  ~

Reply via email to