Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要使用 DOS 命令 FINDSTR 来搜索我们所有与其他类型文件(如 PDF、exe、dll 等)混合的源代码文件。
我不需要搜索那些二进制文件。有没有办法排除二进制文件?
我的命令看起来像
findstr /r /n /o /s /g:c:\projects\vsssearch\muafinddata.txt /d:c:/projects/axl *.axl > output.txt
提前感谢您的任何见解。
约翰
你试试 /p 吗?帮助说:“/P 跳过带有不可打印字符的文件。”