linux 中查找使用find 非常方便,Windows下使用递归思想也同样可以实现: 查找当前目录下的 所有的 log 文件: for /r .(当前目录) %i in (*.log) do @echo %i