Finding Content in your files

If you want to search text files in your computer for a specific string you can do this easily using the following code:

for /f "tokens=*" %i IN ('dir /s /b *.asp') DO find /I "depthomepages" %i >> output.txt

You can replace dir /s /b *.asp to something more appropriate. You can alternatively search only specific folders also, by simply modifying the dir arguments.

Share and Enjoy:
  • Digg
  • del.icio.us
  • Facebook
  • Google Bookmarks
  • Live
  • StumbleUpon


One Response to “Finding Content in your files”

  1. Mark says:

    This will be useful to me. Thanks!

Leave a Reply