command-line - 这个 Findstr 命令缺少什么?

标签 command-line dos findstr

这个 Findstr 命令缺少什么?

X:\Admin>findstr /s/i/c:"permission denied" *.*
FINDSTR: // ignored
FINDSTR: // ignored

X:\Admin>findstr -s-i-c:"permission denied" *.*
FINDSTR: /- ignored
FINDSTR: /- ignored

X:\Admin>

最佳答案

在参数之间添加空格:

findstr /s /i /c:"permission denied" *.*

关于command-line - 这个 Findstr 命令缺少什么?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14512707/

相关文章:

windows-7 - DOS 批处理 : Getting partial file names

batch-file - 在子目录中的文件名中搜索字符串

C 程序帮助使用 getopt 和命令行参数在 Unix/Linux 中打开文件

java - 使用Java按顺序运行命令行命令

batch-file - 有运行时间限制吗?

windows - 如何使用 FINDSTR 仅获取匹配模式的行号

batch-file - 如何使用批处理删除文件的第一行?

bash - 遍历 bash 脚本中的参数并使用它们的数字

windows - XCOPY 是通过 Windows 文件系统复制文件夹/文件的最快工具吗?

ant - 如何从 ant exec 任务运行多个命令