Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 411
  • Last Modified:

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
0
aeolianje
Asked:
aeolianje
1 Solution
 
sarabandeCommented:
in line 1 you have MODULEINPUT and in line 3 you try to search for MODULENAME.

Sara
0
 
aeolianjeAuthor Commented:
duh....  thanks !!!
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now