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?

  • 1
    Use powershell? It should make this easier – Zoredache Feb 27 '17 at 18:32
0

two ways:

dir *test* /s/b

dir /s/b | findstr /i "test"
0

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

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

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.