批处理文件从一个目录复制到另一个文件 [英] Batch file to copy files from one directory to another

查看:280
本文介绍了批处理文件从一个目录复制到另一个文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个应用程序的两个code基地。我需要的所有文件与名为.java从较新的code基,复制所有的目录,以旧(所以我可以提交它SVN)。

I have two code bases of an application. I need to copy all the files in all the directories with .java from the newer code base, to the older (so I can commit it to svn).

我如何写一个批处理文件来做到这一点?

How can I write a batch files to do this?

推荐答案

XCOPY / D?

XCOPY /D ?

xcopy c:\olddir\*.java c:\newdir /D /E /Q /Y

这篇关于批处理文件从一个目录复制到另一个文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆