tags:

views:

60

answers:

2

Possible Duplicate:
How to copy a file to another path?

hi,

how to copy war files from one folder to another using c#.

+1  A: 

Give this a try...

DirectoryInfo sourceDirectory = new DirectoryInfo("mySource");
FileInfo[] warFiles = sourceDirectory.GetFiles("*.war");

foreach(FileInfo file in warFiles)
{
    file.CopyTo("myDestination");
}
Austin Salonen
Thanks to all. i got the solution using ur comments answers.
rajshades
A: 

Quick and Easy System.IO.File.Copy(sourceFileName, destination)

nitroxn