本文介绍了如何递归地将特定模式的文件复制到Windows上的单个平面文件夹中?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我需要将一组DLL和PDB文件从一组文件夹中递归复制到另一个文件夹。我不想在目标文件夹中重新创建文件夹层次结构。
我想使用内置的Windows工具,例如。 DOS命令。

I need to copy a set of DLL and PDB files from a set of folders recursively into another folder. I don't want to recreate the folder hierarchy in the target folder. I want to use built in Windows tools, e.g. DOS commands.

推荐答案

mkdir targetDir
for /r %x in (*.dll, *pdb) do copy "%x" targetDir\

上面的命令,如果你正在复制多个文件,不想继续回答是。

Use /Y at the end of the above command if you are copying multiple files and don't want to keep answering "Yes".

这篇关于如何递归地将特定模式的文件复制到Windows上的单个平面文件夹中?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 20:46