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

1

8

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

Royroyal answered 18/10, 2011 at 4:17 Comment(0)
P
13
<copy todir="newDir">
  <fileset basedir="oldDir">
     <include name="**/*" />
  </fileset>
</copy>
Prioress answered 18/10, 2011 at 4:24 Comment(1)
how can we pass variables from c#.net to this xml by giving the newDir and oldDir values?Geminate

© 2022 - 2024 — McMap. All rights reserved.