DOS FINDSTR command

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
aeolianjeAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
sarabandeConnect With a Mentor Commented:
in line 1 you have MODULEINPUT and in line 3 you try to search for MODULENAME.

Sara
0
 
aeolianjeAuthor Commented:
duh....  thanks !!!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.