批处理脚本 - FIND



此批处理命令用来搜索文件或输入中的字符串,并输出匹配行。

语法

FIND [text] [destination]

其中 text 为需要搜索的字符串,destination 为需要进行搜索的源。

示例

@echo off 
FIND "Application" C:\tp\lists.txt

输出

如果单词“Application”存在于文件 lists.txt 中,则包含该字符串的行将显示在命令提示符中。

batch_script_commands.htm
广告
© . All rights reserved.