| Author: Sam 24 Sep 2008 | Member Level: Bronze | Rating:  Points: 5 |
Hi, See the below code,
if(!Directory.Exists(url_destine))
Directory.CreateDirectory(url_destine);
string path_file_destine = string.Empty;
foreach (string file in Directory.GetFiles(url_source))
{
path_file_destine= url_destine+Path.GetFileName(file);
File.Copy(file, path_file_destine);
}
Regards, Sampath
|