| 1. |
Solve : findstr search specific file types? |
|
Answer» I am trying to search for a specific string in certain type of files. The problem is that below CODE is also showing me files that contains names like aaa.bat_new, aaa.cmd_20150512, etc. How do I tell it to only search files ending in .bat and .cmd? I am searching for the string "d:" only in files that have an extension of .bat or .cmd. Try this. findstr /s "d:" *.bat *.cmd If you want to find d: and also D: then place an /i switch before the QUOTED string like this findstr /s /i "d:" *.bat *.cmdThanks alot, that worked..... |
|