【发布时间】:2013-05-24 17:36:30
【问题描述】:
findstr /S "存储过程" *.*
返回所有带有字符串“stored”而不是“stored procedure”的文件。
有谁知道我做错了什么?谢谢
【问题讨论】:
标签: windows search windows-7 findstr
findstr /S "存储过程" *.*
返回所有带有字符串“stored”而不是“stored procedure”的文件。
有谁知道我做错了什么?谢谢
【问题讨论】:
标签: windows search windows-7 findstr
您需要使用/c: 选项告诉findstr 搜索整个字符串而不是搜索单个组件。您的命令将找到任何带有“已存储”或“过程”的文件。
findstr /S /c:"stored procedure" *.*
将找到其中包含字符串“存储过程”的任何文件。
【讨论】: