DEVOPS
DEVOPS

Reputation: 18790

How to copy one directory with all content using nant script?

I need to copy one folder with all content.

My folder structure is like this

Main Folder

folder1

`1.zip`
`2.zip`

Folder2

`3.zip`
`4.zip`

How to copy main folder with all these content using nant script.

Please help me. Thanks

Upvotes: 8

Views: 5838

Answers (1)

yas4891
yas4891

Reputation: 4862

<copy todir="newDir">
  <fileset basedir="oldDir">
     <include name="**/*" />
  </fileset>
</copy>

Upvotes: 13

Related Questions