在cmd中将多个文件从1个位置复制到另一个位置

时间:2014-01-20 05:26:06

标签: windows cmd copy-paste

copy C:\Integration\integration-batch.jar integration-post-processor.jar integration-translator.jar E:\MyFolder

我想将我的文件“integration-batch.jar,integration-post-processor.jar,integration-translator.jar”复制到E:\ MyFolder上面的命令对我不起作用。

1 个答案:

答案 0 :(得分:0)

切换到文件所在的文件夹(即C:\ Integration),然后:

在Windows中:

for%I in(integration-batch.jar integration-post-processor.jar integration-translator.jar)do copy%I e:\ MyFolder

在Linux / Mac OS中:

cp integration-batch.jar integration-post-processor.jar integration-translator.jar E:\ MyFolder

它将自动使用命令中的姓氏作为目标目录。