嗨, 大家好: 网站在新年后正式开通,欢迎大家加入我们,共同维护一个良好氛围的中国技术社区。 欢迎举报不良帖子,欢迎提供建议。
我们的QQ群:136102234,欢迎进群找答案,里边会有很多资深的大师们。 point overflow

很多时候苦于找不到某个文件或者某个单词对应的文件。

那么这个命令对你很有帮助。

asked 2016-04-08 16:21:08

jkant's gravatar image

jkant ♦♦
11134138139
accept rate: 3%


很好用的命令,
循环查找D:\dir\下的含有2016-04-06的文件,然后循环
查找22694并输出到D:/findstr.txt
for /r D:\dir\ %i in (*2016-04-06*) do findstr /i /C:"22694" %i >>D:/findstr.txt

link

answered 2016-04-08 16:21:50

jkant's gravatar image

jkant ♦♦
11134138139
accept rate: 3%

已编辑 2016-04-08 16:22:08

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×26
×2
×1
×1

Asked: 2016-04-08 16:21:08

Seen: 1,275 times

Last updated: 2016-04-08 16:22:08