1

I have a simple question regarding how to finding a file in cmd and then piping the output to findstr to nail down a specific file.

For example,

dir change /s /p | findstr "error"

Can this be achieved?

gsb005
  • 111
  • 1
  • 1
  • 6

2 Answers2

0

two ways:

dir *test* /s/b

dir /s/b | findstr /i "test"
Jenny D
  • 27,780
  • 21
  • 75
  • 114
gsb005
  • 111
  • 1
  • 1
  • 6
0

Use this file to locate files on c:\ drive using a string

dir /s/b . | find /i "CVE-2016-2107"

gsb005
  • 111
  • 1
  • 1
  • 6