<p>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).</p>

<p>How can I write a batch files to do this?</p>

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