dos命令,在文件中查找指定的字符串 @echo offSET /p var=for /r "D:\1" %%i in (*.log) do ((type %%i|find /N "%var%")&&@echo %%i&pause) 还需修改