Solved

DOS FINDSTR command

Posted on 2013-06-05
2
404 Views
Last Modified: 2013-06-06
I am trying to locate a specific word (based on user input) in a folder with sub-folders.  I have tried using the FINDSTR command with options but results are not consistent and it doesn't find the sub-folders.

SET /p MODULEINPUT=Enter module name:
if exist SEARCH-RESULTS.txt del SEARCH-RESULTS.txt
FINDSTR /I /S "%MODULENAME%" *.TXT > SEARCH-RESULTS.TXT

Thanks for the help,
je
0
Comment
Question by:aeolianje
2 Comments
 
LVL 33

Accepted Solution

by:
sarabande earned 250 total points
ID: 39224719
in line 1 you have MODULEINPUT and in line 3 you try to search for MODULENAME.

Sara
0
 

Author Closing Comment

by:aeolianje
ID: 39226854
duh....  thanks !!!
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article is meant to give a basic understanding of how to use R Sweave as a way to merge LaTeX and R code seamlessly into one presentable document.
Does the idea of dealing with bits scare or confuse you? Does it seem like a waste of time in an age where we all have terabytes of storage? If so, you're missing out on one of the core tools in every professional programmer's toolbox. Learn how to …
An introduction to basic programming syntax in Java by creating a simple program. Viewers can follow the tutorial as they create their first class in Java. Definitions and explanations about each element are given to help prepare viewers for future …
Viewers will learn how to properly install Eclipse with the necessary JDK, and will take a look at an introductory Java program. Download Eclipse installation zip file: Extract files from zip file: Download and install JDK 8: Open Eclipse and …

679 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question