Solved

DOS FINDSTR command

Posted on 2013-06-05
2
405 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 34

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 is an explanation of a simple data model to help parse a JSON feed
Entering a date in Microsoft Access can be tricky. A typo can cause month and day to be shuffled, entering the day only causes an error, as does entering, say, day 31 in June. This article shows how an inputmask supported by code can help the user a…
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 …
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

739 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