Solved

DOS FINDSTR command

Posted on 2013-06-05
2
398 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 32

Accepted Solution

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

Sara
0
 

Author Closing Comment

by:aeolianje
Comment Utility
duh....  thanks !!!
0

Featured Post

Top 6 Sources for Identifying Threat Actor TTPs

Understanding your enemy is essential. These six sources will help you identify the most popular threat actor tactics, techniques, and procedures (TTPs).

Join & Write a Comment

Suggested Solutions

Title # Comments Views Activity
Adobe Customization Wizard XI issues 26 166
Excel object stays open 19 65
strCount chalenge 3 50
C Programming - If Statement 8 47
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…
Although it can be difficult to imagine, someday your child will have a career of his or her own. He or she will likely start a family, buy a home and start having their own children. So, while being a kid is still extremely important, it’s also …
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 seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…

743 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

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now