开发者

how to copy war file progrmaticaly using c# [duplicate]

This question already has answer开发者_JAVA百科s here: Closed 12 years ago.

Possible Duplicate:

How to copy a file to another path?

hi,

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


Give this a try...

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

foreach(FileInfo file in warFiles)
{
    file.CopyTo("myDestination");
}


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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜